This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; ----------------------------------------------------------------------------------- | |
; | | | |
; | Program: SAM Coupe Sprites Tutorial 1 - Part 1 | | |
; | Filename: Sprites1.asm | | |
; | Version: 1.0 | | |
; | Date: 12/10/2017 | | |
; | Author: Pete Gallagher - PJG Creations Ltd | | |
; | | | |
; ----------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; ----------------------------------------------------------------------------------- | |
; | | | |
; | Program: SAM Coupe Sprites Tutorial 1 - Part 0 | | |
; | Filename: Sprites0.asm | | |
; | Version: 1.0 | | |
; | Date: 12/10/2017 | | |
; | Author: Pete Gallagher - PJG Creations Ltd | | |
; | | | |
; ----------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoexec ; Automatically Execute the Program | |
ORG 32768 ; Store the program in User Address Space | |
; | |
; Print an ASCII Table with 96 Characters | |
; | |
print_test: LD B,96 ; We want 96 characters in our ASCII Tabe | |
LD A,32 ; 32 is the ASCII code for space | |
loop2: LD C,A ; Temp store for the A Register as it's zeroed by the RST 16 call below | |
RST 16 ; Output A to current stream (Print the character in the A Register) |
NewerOlder