32 lines
378 B
NASM
32 lines
378 B
NASM
; A test for the new math subroutines.
|
|
|
|
#Include print.asm
|
|
#Include int8.asm
|
|
#Include int16.asm
|
|
|
|
#Program
|
|
start:
|
|
SETD SomeInt16Operands
|
|
CALL int16div
|
|
LDA
|
|
CALL printByteHex
|
|
INCD
|
|
LDA
|
|
CALL printByteHex
|
|
CALL blankSpace
|
|
INCD
|
|
LDA
|
|
CALL printByteHex
|
|
INCD
|
|
LDA
|
|
CALL printByteHex
|
|
end:
|
|
CALL lineFeed
|
|
HALT
|
|
|
|
#Data
|
|
|
|
SomeInt16Operands:
|
|
0x01 0xF4
|
|
0x00 0x0A
|