Working debugger, non-working programmer and lcd test procedure with lcd mapped in memory

This commit is contained in:
Daniele Verducci su MatissePenguin
2020-10-14 19:09:54 +02:00
parent f65d572f74
commit 63974b148c
4 changed files with 244 additions and 31 deletions

BIN
assembly/a.bin Normal file

Binary file not shown.

View File

@ -0,0 +1,40 @@
;hd44780 lcd test procedure
ld hl,$4000 ;address reg points to lcd instruction address
;reset procedure
ld a,%00111000
ld (hl),a
ld a,%00001000
ld (hl),a
ld a,%00000001
ld (hl),a
;init procedure
ld a,%00111000
ld (hl),a
ld a,%00001110
ld (hl),a
;write characters to display
ld hl,$4001 ;address reg points to lcd data address
ld a,%01000100
ld (hl),a
ld a,%01100001
ld (hl),a
ld a,%01101110
ld (hl),a
ld a,%01101001
ld (hl),a
ld a,%01100101
ld (hl),a
ld a,%01101100
ld (hl),a
ld a,%01100101
ld (hl),a
ld a,%00100001
ld (hl),a
halt