Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .org 4h
- LD H, 5
- LD L, 2
- LD SP, 00ffh
- push HL
- LD HL, 65535
- call foo
- xor A
- inc B
- dec c
- .end
- ;- - - - - - - - - - - - - - int add(int, int);
- .org 50h
- foo: pop DE
- pop BC
- LD A, C
- ADD A, B
- push DE
- ret
- .end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement