From fa2906767855c499ec8ffe413e86ece444019c82 Mon Sep 17 00:00:00 2001 From: Ry Date: Tue, 30 Apr 2024 22:07:04 -0700 Subject: [PATCH] bg: Specify background image file on command line --- applications/bg/main.asm | 6 +++--- base_image/startup.bat.default | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/applications/bg/main.asm b/applications/bg/main.asm index 0d7a8ba..fb2b90a 100644 --- a/applications/bg/main.asm +++ b/applications/bg/main.asm @@ -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 @@ -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" diff --git a/base_image/startup.bat.default b/base_image/startup.bat.default index 24330c3..9f3f3e0 100644 --- a/base_image/startup.bat.default +++ b/base_image/startup.bat.default @@ -1,4 +1,4 @@ -*bg; +*bg bg.raw; *barclock; *fetcher boot; *terminal;