Files
SplitBit-Emulator/Programs/printHello.asm
T
Anachronaut 992e44ca12 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.
2024-10-27 19:18:54 -04:00

21 lines
445 B
NASM

; 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!"