Skip to content

Instantly share code, notes, and snippets.

View pjgpetecodes's full-sized avatar
💭
Making cool stuff!

Peter Gallagher pjgpetecodes

💭
Making cool stuff!
View GitHub Profile
@pjgpetecodes
pjgpetecodes / sprite1.asm
Last active November 10, 2017 13:44
Sam Coupe Sprite Tutorial - Part 1
;
; -----------------------------------------------------------------------------------
; | |
; | Program: SAM Coupe Sprites Tutorial 1 - Part 1 |
; | Filename: Sprites1.asm |
; | Version: 1.0 |
; | Date: 12/10/2017 |
; | Author: Pete Gallagher - PJG Creations Ltd |
; | |
; -----------------------------------------------------------------------------------
@pjgpetecodes
pjgpetecodes / Sprites0.asm
Last active November 10, 2017 11:52
Sam Coupe Sprite Tutorial - Part 0
;
; -----------------------------------------------------------------------------------
; | |
; | Program: SAM Coupe Sprites Tutorial 1 - Part 0 |
; | Filename: Sprites0.asm |
; | Version: 1.0 |
; | Date: 12/10/2017 |
; | Author: Pete Gallagher - PJG Creations Ltd |
; | |
; -----------------------------------------------------------------------------------
@pjgpetecodes
pjgpetecodes / Hello World.asm
Last active September 24, 2017 07:50 — forked from anonymous/Hello World.asm
Commented Z80 Hello World
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)