Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Процедура деления 16/8 by Andrew Strikes Code
- Вход: HL - делимое, A - делитель
- Выход: HL - частное, A - остаток
- DIV_21:
- NEG
- LD C,A
- LD B,#11
- XOR A
- DIV210:
- ADC A,A
- ADD A,C
- JR C,DIV211
- SUB C
- OR A
- DIV211:
- ADC HL,HL
- DJNZ DIV210
- RET
Advertisement
Add Comment
Please, Sign In to add comment