.cr 6800 .tf spam6800.obj,AP1 .lf spam6800 ;=====================================================; ; Infinite SPAM loop for the Motorola 6800 ; ; by barrym 2013-04-10 ; ;-----------------------------------------------------; ; Prints the message "SPAM" repeatedly to an ascii ; ; terminal (console) connected to a 1970s vintage ; ; SWTPC 6800 system, which is the target device for ; ; this assembly. ; ; Many thanks to: ; ; swtpc.com for hosting Michael Holley's documents! ; ; sbprojects.com for a very nice assembler! ; ; swtpcemu.com for a very capable emulator! ; ; reg x is the string pointer ; ; reg a holds the ascii char to be output ; ;-----------------------------------------------------; outeee = $e1d1 ;ROM: console putchar routine .or $0f00 ;-----------------------------------------------------; main ldx #string ;Point to the string bra puts ; and print it outs jsr outeee ;Emit a as ascii inx ;Advance the string pointer puts ldaa ,x ;Load a string character bne outs ;Print it if non-null bra main ;else restart ;=====================================================; string .as "SPAM",#13,#10,#0 .en