mirror of
https://github.com/jeremysrand/BuGS.git
synced 2025-01-16 07:32:10 +00:00
Start coding up the sprite code.
This commit is contained in:
parent
ceb2d00ff0
commit
fd72e9f18b
@ -64,6 +64,8 @@
|
|||||||
9D1716A62491C49300C83148 /* tail.mk */ = {isa = PBXFileReference; lastKnownFileType = text; path = tail.mk; sourceTree = "<group>"; };
|
9D1716A62491C49300C83148 /* tail.mk */ = {isa = PBXFileReference; lastKnownFileType = text; path = tail.mk; sourceTree = "<group>"; };
|
||||||
9D1716A92491C49300C83148 /* BuGS.xcscheme */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = BuGS.xcscheme; path = ../../BuGS.xcodeproj/xcshareddata/xcschemes/BuGS.xcscheme; sourceTree = "<group>"; };
|
9D1716A92491C49300C83148 /* BuGS.xcscheme */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = BuGS.xcscheme; path = ../../BuGS.xcodeproj/xcshareddata/xcschemes/BuGS.xcscheme; sourceTree = "<group>"; };
|
||||||
9D62AF3B249871A300348F45 /* colour.s */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm; path = colour.s; sourceTree = "<group>"; };
|
9D62AF3B249871A300348F45 /* colour.s */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm; path = colour.s; sourceTree = "<group>"; };
|
||||||
|
9D62AF3C24994B1600348F45 /* sprites.s */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm; path = sprites.s; sourceTree = "<group>"; };
|
||||||
|
9D62AF3E2499660100348F45 /* local.macros */ = {isa = PBXFileReference; lastKnownFileType = text; path = local.macros; sourceTree = "<group>"; };
|
||||||
9D8FFC602491CA28005C9327 /* game.s */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm; path = game.s; sourceTree = "<group>"; };
|
9D8FFC602491CA28005C9327 /* game.s */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm; path = game.s; sourceTree = "<group>"; };
|
||||||
9D8FFC612491CAF0005C9327 /* game.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = game.h; sourceTree = "<group>"; };
|
9D8FFC612491CAF0005C9327 /* game.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = game.h; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
@ -105,6 +107,8 @@
|
|||||||
9D8FFC602491CA28005C9327 /* game.s */,
|
9D8FFC602491CA28005C9327 /* game.s */,
|
||||||
9D8FFC612491CAF0005C9327 /* game.h */,
|
9D8FFC612491CAF0005C9327 /* game.h */,
|
||||||
9D62AF3B249871A300348F45 /* colour.s */,
|
9D62AF3B249871A300348F45 /* colour.s */,
|
||||||
|
9D62AF3C24994B1600348F45 /* sprites.s */,
|
||||||
|
9D62AF3E2499660100348F45 /* local.macros */,
|
||||||
9D1716912491C49300C83148 /* main.rez */,
|
9D1716912491C49300C83148 /* main.rez */,
|
||||||
9D1716932491C49300C83148 /* Makefile */,
|
9D1716932491C49300C83148 /* Makefile */,
|
||||||
9D1716952491C49300C83148 /* make */,
|
9D1716952491C49300C83148 /* make */,
|
||||||
|
@ -54,7 +54,7 @@ REZFLAGS+=
|
|||||||
MACGENFLAGS+=
|
MACGENFLAGS+=
|
||||||
|
|
||||||
# Add any other macro libraries to include in this variable:
|
# Add any other macro libraries to include in this variable:
|
||||||
MACGENMACROS+=
|
MACGENMACROS+=local.macros
|
||||||
|
|
||||||
# Add any arguments you want passed to the assembler to this variable:
|
# Add any arguments you want passed to the assembler to this variable:
|
||||||
ASMFLAGS+=
|
ASMFLAGS+=
|
||||||
|
91
BuGS/game.s
91
BuGS/game.s
@ -16,6 +16,96 @@ game start
|
|||||||
lda #0
|
lda #0
|
||||||
jsl setColour
|
jsl setColour
|
||||||
|
|
||||||
|
ldx #$2003
|
||||||
|
jsl mushroom1
|
||||||
|
|
||||||
|
ldx #$200b
|
||||||
|
jsl mushroom2
|
||||||
|
|
||||||
|
ldx #$2013
|
||||||
|
jsl mushroom3
|
||||||
|
|
||||||
|
ldx #$201b
|
||||||
|
jsl mushroom4
|
||||||
|
|
||||||
|
ldx #$2023
|
||||||
|
jsl poisonedMushroom1
|
||||||
|
|
||||||
|
ldx #$202b
|
||||||
|
jsl poisonedMushroom2
|
||||||
|
|
||||||
|
ldx #$2033
|
||||||
|
jsl poisonedMushroom3
|
||||||
|
|
||||||
|
ldx #$203b
|
||||||
|
jsl poisonedMushroom4
|
||||||
|
|
||||||
|
ldx #$2043
|
||||||
|
jsl letterA
|
||||||
|
|
||||||
|
ldx #$204b
|
||||||
|
jsl letterB
|
||||||
|
|
||||||
|
ldx #$2053
|
||||||
|
jsl letterC
|
||||||
|
|
||||||
|
ldx #$205b
|
||||||
|
jsl letterD
|
||||||
|
|
||||||
|
ldx #$2063
|
||||||
|
jsl letterE
|
||||||
|
|
||||||
|
ldx #$206b
|
||||||
|
jsl letterF
|
||||||
|
|
||||||
|
ldx #$2073
|
||||||
|
jsl letterG
|
||||||
|
|
||||||
|
ldx #$207b
|
||||||
|
jsl letterH
|
||||||
|
|
||||||
|
ldx #$2083
|
||||||
|
jsl letterI
|
||||||
|
|
||||||
|
ldx #$208b
|
||||||
|
jsl letterJ
|
||||||
|
|
||||||
|
ldx #$2093
|
||||||
|
jsl letterK
|
||||||
|
|
||||||
|
ldx #$209b
|
||||||
|
jsl letterL
|
||||||
|
|
||||||
|
ldx #$2a03
|
||||||
|
jsl letterM
|
||||||
|
|
||||||
|
ldx #$2a0b
|
||||||
|
jsl letterN
|
||||||
|
|
||||||
|
ldx #$2a13
|
||||||
|
jsl letterO
|
||||||
|
|
||||||
|
ldx #$2a1b
|
||||||
|
jsl letterP
|
||||||
|
|
||||||
|
ldx #$2a23
|
||||||
|
jsl letterQ
|
||||||
|
|
||||||
|
ldx #$2a2b
|
||||||
|
jsl letterR
|
||||||
|
|
||||||
|
ldx #$2a33
|
||||||
|
jsl letterS
|
||||||
|
|
||||||
|
ldx #$2a3b
|
||||||
|
jsl letterT
|
||||||
|
|
||||||
|
ldx #$2a43
|
||||||
|
jsl letterU
|
||||||
|
|
||||||
|
ldx #$2a4b
|
||||||
|
jsl letterV
|
||||||
|
|
||||||
jsl waitForKey
|
jsl waitForKey
|
||||||
rtl
|
rtl
|
||||||
|
|
||||||
@ -56,7 +146,6 @@ nextWord anop
|
|||||||
pld
|
pld
|
||||||
cli
|
cli
|
||||||
|
|
||||||
|
|
||||||
rtl
|
rtl
|
||||||
|
|
||||||
|
|
||||||
|
30
BuGS/local.macros
Normal file
30
BuGS/local.macros
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
;
|
||||||
|
; local.macros
|
||||||
|
; BuGS
|
||||||
|
;
|
||||||
|
; Created by Jeremy Rand on 2020-06-16.
|
||||||
|
;Copyright © 2020 Jeremy Rand. All rights reserved.
|
||||||
|
;
|
||||||
|
|
||||||
|
macro
|
||||||
|
_spriteHeader
|
||||||
|
sei
|
||||||
|
phd
|
||||||
|
tsc
|
||||||
|
sta backupStack
|
||||||
|
lda $e1c068 ; Direct Page and Stack in Bank 01/
|
||||||
|
ora #$0030
|
||||||
|
sta $e1c068
|
||||||
|
mend
|
||||||
|
|
||||||
|
macro
|
||||||
|
_spriteFooter
|
||||||
|
lda $e1c068
|
||||||
|
and #$ffcf
|
||||||
|
sta $e1c068
|
||||||
|
lda backupStack
|
||||||
|
tcs
|
||||||
|
pld
|
||||||
|
cli
|
||||||
|
rtl
|
||||||
|
mend
|
2003
BuGS/sprites.s
Normal file
2003
BuGS/sprites.s
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user