mirror of
https://github.com/pkali/Avery_Breakout.git
synced 2026-05-20 22:33:55 +02:00
More procs :)
This commit is contained in:
+28
-13
@@ -69,7 +69,8 @@ score=statusBuffer+33
|
|||||||
HiScore=statusBuffer+17
|
HiScore=statusBuffer+17
|
||||||
Lives=statusBuffer+8
|
Lives=statusBuffer+8
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
vint
|
.proc vint
|
||||||
|
;--------------------------------------------------
|
||||||
;------------JOY-------------
|
;------------JOY-------------
|
||||||
;happy happy joy joy
|
;happy happy joy joy
|
||||||
;check for joystick now
|
;check for joystick now
|
||||||
@@ -157,9 +158,10 @@ JNotFire
|
|||||||
mva #0 dliCount
|
mva #0 dliCount
|
||||||
mva #13 VSCROL
|
mva #13 VSCROL
|
||||||
jmp XITVBV
|
jmp XITVBV
|
||||||
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc DLI
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
DLI
|
|
||||||
/* # fancy shmancy vscroll screen shenanigangs to get the square pixels
|
/* # fancy shmancy vscroll screen shenanigangs to get the square pixels
|
||||||
sta DLI_A
|
sta DLI_A
|
||||||
stx DLI_X
|
stx DLI_X
|
||||||
@@ -207,6 +209,7 @@ DLI
|
|||||||
;ldx DLI_X
|
;ldx DLI_X
|
||||||
lda DLI_A
|
lda DLI_A
|
||||||
rti
|
rti
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
main
|
main
|
||||||
jsr initialize
|
jsr initialize
|
||||||
@@ -701,7 +704,7 @@ delayLoop
|
|||||||
bne delayLoop
|
bne delayLoop
|
||||||
jmp endOfBallzLoop
|
jmp endOfBallzLoop
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
fatplot
|
.proc fatplot
|
||||||
; xpos, ypos (.byte) - pixel position
|
; xpos, ypos (.byte) - pixel position
|
||||||
; xpos<80
|
; xpos<80
|
||||||
; pixel color in "color"
|
; pixel color in "color"
|
||||||
@@ -735,8 +738,9 @@ fpRightNibble
|
|||||||
ora RNColtable,x
|
ora RNColtable,x
|
||||||
sta (temp),y
|
sta (temp),y
|
||||||
rts
|
rts
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
fatdeplot
|
.proc fatdeplot
|
||||||
; deyxpos, deypos (.byte) - pixel position
|
; deyxpos, deypos (.byte) - pixel position
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
; let's calculate coordinates from xpos and ypos
|
; let's calculate coordinates from xpos and ypos
|
||||||
@@ -758,8 +762,9 @@ fatdeplot
|
|||||||
and debittable,x
|
and debittable,x
|
||||||
sta (temp),y
|
sta (temp),y
|
||||||
rts
|
rts
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
clearDeadBall
|
.proc clearDeadBall
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
;dead ball in clearBallNr
|
;dead ball in clearBallNr
|
||||||
|
|
||||||
@@ -789,6 +794,7 @@ clearDeadLoop
|
|||||||
bpl clearDeadLoop
|
bpl clearDeadLoop
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc ScoreUp
|
.proc ScoreUp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
@@ -886,9 +892,8 @@ higher6
|
|||||||
sta HiScore+5
|
sta HiScore+5
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
clearScreen
|
.proc clearScreen
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
lda #0
|
lda #0
|
||||||
tax
|
tax
|
||||||
@@ -897,8 +902,10 @@ clearScreen
|
|||||||
inx
|
inx
|
||||||
bne @-
|
bne @-
|
||||||
rts
|
rts
|
||||||
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc cyclecolorsReset
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
cyclecolorsReset
|
|
||||||
ldy #6
|
ldy #6
|
||||||
cycleRloop
|
cycleRloop
|
||||||
lda colorCycleTabReset,y
|
lda colorCycleTabReset,y
|
||||||
@@ -906,8 +913,9 @@ cycleRloop
|
|||||||
dey
|
dey
|
||||||
bpl cycleRloop
|
bpl cycleRloop
|
||||||
mva #0 color
|
mva #0 color
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
cyclecolors
|
.proc cyclecolors
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
inc color
|
inc color
|
||||||
lda color
|
lda color
|
||||||
@@ -958,6 +966,8 @@ cct = colorCycleTab
|
|||||||
stx cct+0
|
stx cct+0
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
.endp
|
||||||
|
;--------------------------------------------------
|
||||||
colorCycleTab
|
colorCycleTab
|
||||||
|
|
||||||
.by 14,2,4,6,8,10,12
|
.by 14,2,4,6,8,10,12
|
||||||
@@ -967,7 +977,7 @@ colorCycleTabReset
|
|||||||
brickcolorTab
|
brickcolorTab
|
||||||
.by 0
|
.by 0
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
initialize
|
.proc initialize
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
|
||||||
mva #$00 PCOLR0 ; = $02C0 ;- - rejestr-cień COLPM0
|
mva #$00 PCOLR0 ; = $02C0 ;- - rejestr-cień COLPM0
|
||||||
@@ -1082,8 +1092,9 @@ eXistenZstackFill
|
|||||||
mva #1 color
|
mva #1 color
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
drawBricks
|
.proc drawBricks
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
|
||||||
; solid maxBrickLines field
|
; solid maxBrickLines field
|
||||||
@@ -1108,8 +1119,9 @@ drawBricksLoop
|
|||||||
; set number of bricks in this level
|
; set number of bricks in this level
|
||||||
mwa #952 BricksInLevel
|
mwa #952 BricksInLevel
|
||||||
rts
|
rts
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
randomStart
|
.proc randomStart
|
||||||
; X - ball number
|
; X - ball number
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
lda #1
|
lda #1
|
||||||
@@ -1135,8 +1147,10 @@ randomStart
|
|||||||
lda #1
|
lda #1
|
||||||
sta dyTableL,x
|
sta dyTableL,x
|
||||||
rts
|
rts
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc BuildLevelFromBuffer
|
.proc BuildLevelFromBuffer
|
||||||
|
;--------------------------------------------------
|
||||||
mwa #Menu_data inlevel
|
mwa #Menu_data inlevel
|
||||||
;mwa #Level000_data inlevel
|
;mwa #Level000_data inlevel
|
||||||
ldy #0
|
ldy #0
|
||||||
@@ -1216,6 +1230,7 @@ LevelDataError
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
;--------------------------------------------------
|
||||||
Menu_data
|
Menu_data
|
||||||
.byte '200',155 ; number of bricks in ATASCII
|
.byte '200',155 ; number of bricks in ATASCII
|
||||||
.byte '1',155 ; brick size in pixels
|
.byte '1',155 ; brick size in pixels
|
||||||
|
|||||||
Reference in New Issue
Block a user