Added new instructions.

Added CCF - Clear Carry Flag
Added BRC - Branch on Carry Flag
Improved CALL and RET - All registers but status now saved and restored.
This commit is contained in:
Anachronaut
2024-10-29 21:04:03 -04:00
committed by GitHub
parent f9308338c4
commit a58fb3d694
8 changed files with 255 additions and 112 deletions
+24
View File
@@ -0,0 +1,24 @@
#Include print.asm
#Program
start:
INIB 0d10
SETD byte
loop:
CALL printDecimalDigit
LDA
INCA
STA
SUB
BRQ end
CALL lineFeed
BRI loop
end:
CALL lineFeed
HALT
#Data
byte:
0x00