Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Call-a-function/Z80-Assembly/call-a-function-1.z80
Normal file
11
Task/Call-a-function/Z80-Assembly/call-a-function-1.z80
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
PackNibbles:
|
||||
;input: B = top nibble, C = bottom nibble. Outputs to accumulator.
|
||||
;usage: B = &0X, C = &0Y, => A = &XY
|
||||
LD A,B
|
||||
AND %00001111
|
||||
RLCA
|
||||
RLCA
|
||||
RLCA
|
||||
RLCA
|
||||
OR C
|
||||
RET
|
||||
4
Task/Call-a-function/Z80-Assembly/call-a-function-2.z80
Normal file
4
Task/Call-a-function/Z80-Assembly/call-a-function-2.z80
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
AddTwoNumbers
|
||||
;input registers: A,B. Outputs to A.
|
||||
ADD a,b
|
||||
RET
|
||||
Loading…
Add table
Add a link
Reference in a new issue