Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Character-codes/Z80-Assembly/character-codes-1.z80
Normal file
2
Task/Character-codes/Z80-Assembly/character-codes-1.z80
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
LD A,'a'
|
||||
call &BB5a
|
||||
19
Task/Character-codes/Z80-Assembly/character-codes-2.z80
Normal file
19
Task/Character-codes/Z80-Assembly/character-codes-2.z80
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
ShowHex:
|
||||
push af
|
||||
and %11110000
|
||||
rrca
|
||||
rrca
|
||||
rrca
|
||||
rrca
|
||||
call PrintHexChar
|
||||
pop af
|
||||
and %00001111
|
||||
;call PrintHexChar (execution flows into it naturally)
|
||||
PrintHexChar:
|
||||
or a ;Clear Carry Flag
|
||||
daa
|
||||
add a,&F0
|
||||
adc a,&40 ;this sequence of instructions converts a single hex digit to ASCII.
|
||||
|
||||
jp PrintChar ;this is whatever routine prints to the screen on your system.
|
||||
; It must end in a "ret" and it must take the accumulator as its argument.
|
||||
Loading…
Add table
Add a link
Reference in a new issue