11 lines
652 B
NASM
11 lines
652 B
NASM
;;;--------------------------------------------------------------------------------
|
|
;;; Simple 8080 addition program.
|
|
;;;--------------------------------------------------------------------------------
|
|
LDA 0080H ; 00 111 010 10 000 000 00 000 000
|
|
MOV B,A ; 01 000 111
|
|
LDA 0081H ; 00 111 010 10 000 001 00 000 000
|
|
ADD B ; 10 000 000
|
|
STA 0082H ; 00 110 010 10 000 010 00 000 000
|
|
JMP 0000H ; 11 000 011 00 000 000 00 000 000
|
|
;;;--------------------------------------------------------------------------------
|