CALL and RET instructions.

Changed PSHP and POPP into CALL and RET, streamlining their use for subroutine calls.
Updated Assembler and Emulator.
New demonstration programs.
This commit is contained in:
Anachronaut
2024-10-27 19:18:54 -04:00
committed by GitHub
parent 78f827e9dc
commit 992e44ca12
7 changed files with 152 additions and 54 deletions
+20
View File
@@ -0,0 +1,20 @@
; printHello.asm
; As a demonstration of the new print routines, here's a new implementation for hello.asm
; Anachronaut
; 10/27/2024
; Include the subroutine file.
#Include print.asm
#Program
Start:
SETD myString ; Set the Data Pointer to the string we want to print.
CALL printString ; Call the subroutine.
CALL lineFeed ; Call the linefeed subroutine.
HALT ; Stop the CPU.
#Data
myString:
"Hello, World!"