Skip to content

Commit

Permalink
bg: Specify background image file on command line
Browse files Browse the repository at this point in the history
  • Loading branch information
ry755 committed May 1, 2024
1 parent 6447a71 commit fa29067
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions applications/bg/main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

opton

; open the background file and draw it
; open the specified file and draw it
; if the file can't be opened, then just exit
call get_current_disk_id
mov r1, r0
mov r0, bg_file_name
pop r0
pop r0
mov r2, bg_file_struct
call open
cmp r0, 0
Expand All @@ -20,7 +21,6 @@

call end_current_task

bg_file_name: data.strz "bg.raw"
bg_file_struct: data.fill 0, 32

#include "../../../fox32rom/fox32rom.def"
Expand Down
2 changes: 1 addition & 1 deletion base_image/startup.bat.default
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*bg;
*bg bg.raw;
*barclock;
*fetcher boot;
*terminal;
Expand Down

0 comments on commit fa29067

Please sign in to comment.