Skip to content

Commit

Permalink
updated examples to use memzones
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkamprath committed Apr 21, 2024
1 parent c5d1f00 commit dd47f15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 0 additions & 3 deletions examples/slu4-minimal-64x4/slu4-minimal-64x4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ predefined:
start: 0x0000
end: 0x00FF
- name: ZERO_PAGE_APPS
start: 0x0000
end: 0x007F
- name: ZERO_PAGE_KERNEL
start: 0x0080
end: 0x00FF
- name: USER_APPS
Expand Down
6 changes: 4 additions & 2 deletions examples/slu4-minimal-64x4/software/stars.min64x4
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
; Code modified by Michael Kamprath (michaelkampath) 2024
; Adapted to be compiled with BespokeASM
;
.org 0x2000
#require "slu4-min64x4-asm >= 1.1.0"

.org 0 "USER_APPS"
JPS MakeStars ; generate star data
JPS _Clear

Expand Down Expand Up @@ -110,7 +112,7 @@ UpdateStars: MIV STARDATA,ptr
STARDATA: ; put star data here

#mute
.org 0x0080 ; zero-page variables and constants
.memzone ZERO_PAGE_APPS ; zero-page variables and constants

xa: .2byte 0xffff ; MinOS graphics interface (_SetPixel, _ClearPixel)
ya: .byte 0xff
Expand Down
5 changes: 3 additions & 2 deletions examples/slu4-minimal-64x4/software/vga.min64x4
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
;
; Code modified by Michael Kamprath (michaelkampath) 2024
; Adapted to be compiled with BespokeASM
#require "slu4-min64x4-asm >= 1.1.0"

ViewPort = 0x430c

.org 0x2000
.org 0 "USER_APPS"
MIB 0xfe,0xffff ; initialize stack

CLV _XPos ; reset cursor position
Expand Down Expand Up @@ -142,7 +143,7 @@ VGA_Fill: STB vf_loopx+1 ; save fill value
RTS

#mute
.org 0x0080
.memzone ZERO_PAGE_APPS

sx: .2byte 0xffff ; sprite engine
sy: .byte 0xff
Expand Down

0 comments on commit dd47f15

Please sign in to comment.