РР
Size: a a a
РР
A
A
Х
A
S
; System memory map:There is a 2764 EPROM and 6 U224 4kbit SRAM modules.
; 0x0000 - 0x7FFF = ROM 8K
; 0x8000 - 0x0FFF = RAM 8k
org 0x00 ; Reset vector
reset: jp start ; Jump to start of main code
org 0x0066 ; NMI vector
; forg 0x0066 ; NMI vector
nmi: jp start ; Jump to start of main code
;forg 0x0100 ; put this out of the way
org 0x0100 ; put this out of the way
start: ld a, 0x33 ; load 0x33 into the accumulator ('3' in ASCII)
ld (0x8010), a ; load value of accumulator into memory address 0x8010 (This is in the RAM space)
ld a, 0x39 ; load 0x39 into the accumulator ('9' in ASCII)
ld (0x8011), a ; load value of accumulator into memory address 0x8011 (This is in the RAM space)
ld a, 0x4B ; load 0x4B into the accumulator ('K' in ASCII)
ld (0x8012), a ; load value of accumulator into memory address 0x4012 (This is in the RAM space)
ld a, (0x8010) ; Get value from 0x8010 into the accumulator (Should be 0x33)
ld a, (0x8011) ; Get value from 0x8011 into the accumulator (Should be 0x39)
ld a, (0x8012) ; Get value from 0x8012 into the accumulator (Should be 0x4B)
loop: jp loop ; loop forever
MP
MP
РР
A
MP
MP
LZ
; System memory map:There is a 2764 EPROM and 6 U224 4kbit SRAM modules.
; 0x0000 - 0x7FFF = ROM 8K
; 0x8000 - 0x0FFF = RAM 8k
org 0x00 ; Reset vector
reset: jp start ; Jump to start of main code
org 0x0066 ; NMI vector
; forg 0x0066 ; NMI vector
nmi: jp start ; Jump to start of main code
;forg 0x0100 ; put this out of the way
org 0x0100 ; put this out of the way
start: ld a, 0x33 ; load 0x33 into the accumulator ('3' in ASCII)
ld (0x8010), a ; load value of accumulator into memory address 0x8010 (This is in the RAM space)
ld a, 0x39 ; load 0x39 into the accumulator ('9' in ASCII)
ld (0x8011), a ; load value of accumulator into memory address 0x8011 (This is in the RAM space)
ld a, 0x4B ; load 0x4B into the accumulator ('K' in ASCII)
ld (0x8012), a ; load value of accumulator into memory address 0x4012 (This is in the RAM space)
ld a, (0x8010) ; Get value from 0x8010 into the accumulator (Should be 0x33)
ld a, (0x8011) ; Get value from 0x8011 into the accumulator (Should be 0x39)
ld a, (0x8012) ; Get value from 0x8012 into the accumulator (Should be 0x4B)
loop: jp loop ; loop forever
S
LZ
LZ
LZ
S
LZ