From ccd0b837c8f21ae0df6b2134b622aba66196b95c Mon Sep 17 00:00:00 2001 From: Ry Date: Mon, 24 Jul 2023 21:17:56 -0700 Subject: [PATCH] all: Enable optimizations --- applications/barclock/main.asm | 2 ++ applications/bg/main.asm | 2 ++ applications/fetcher/OS.okm | 2 ++ applications/fetcher/start.asm | 2 ++ applications/foxpaint/main.asm | 2 ++ applications/launcher/main.asm | 2 ++ applications/okmpaint/start.asm | 2 ++ applications/serial/main.asm | 2 ++ applications/sh/main.asm | 2 ++ applications/terminal/main.asm | 2 ++ kernel/main.asm | 2 ++ 11 files changed, 22 insertions(+) diff --git a/applications/barclock/main.asm b/applications/barclock/main.asm index 6f55b1e..c86791c 100644 --- a/applications/barclock/main.asm +++ b/applications/barclock/main.asm @@ -1,5 +1,7 @@ ; menu bar clock + opton + loop: ; redraw the window title if the active window has changed call get_active_window_struct diff --git a/applications/bg/main.asm b/applications/bg/main.asm index a471732..0d7a8ba 100644 --- a/applications/bg/main.asm +++ b/applications/bg/main.asm @@ -1,5 +1,7 @@ ; background image utility + opton + ; open the background file and draw it ; if the file can't be opened, then just exit call get_current_disk_id diff --git a/applications/fetcher/OS.okm b/applications/fetcher/OS.okm index 738b8be..8351f31 100644 --- a/applications/fetcher/OS.okm +++ b/applications/fetcher/OS.okm @@ -1,3 +1,5 @@ +(* FIXME: this module should probably be moved somewhere global so all applications can use it *) + MODULE OS; EXTERN PROCEDURE new_window, destroy_window, draw_str_to_overlay, get_window_overlay_number, draw_widgets_to_window, draw_filled_rectangle_to_overlay, GetNextWindowEvent, DrawPixel, diff --git a/applications/fetcher/start.asm b/applications/fetcher/start.asm index f09fbc8..195391c 100644 --- a/applications/fetcher/start.asm +++ b/applications/fetcher/start.asm @@ -1,3 +1,5 @@ + opton + pop [terminalStreamPtr] pop [arg0Ptr] pop [arg1Ptr] diff --git a/applications/foxpaint/main.asm b/applications/foxpaint/main.asm index 0d60aeb..e95c1ba 100644 --- a/applications/foxpaint/main.asm +++ b/applications/foxpaint/main.asm @@ -1,5 +1,7 @@ ; simple paint application + opton + mov r0, canvas_window_struct mov r1, canvas_window_title mov r2, 512 diff --git a/applications/launcher/main.asm b/applications/launcher/main.asm index 1f90923..9341301 100644 --- a/applications/launcher/main.asm +++ b/applications/launcher/main.asm @@ -1,5 +1,7 @@ ; simple application launcher + opton + ; create the window mov r0, window_struct mov r1, window_title diff --git a/applications/okmpaint/start.asm b/applications/okmpaint/start.asm index ae05889..e1d6421 100644 --- a/applications/okmpaint/start.asm +++ b/applications/okmpaint/start.asm @@ -1,3 +1,5 @@ + opton + call Main call end_current_task diff --git a/applications/serial/main.asm b/applications/serial/main.asm index 6dcd45a..b802668 100644 --- a/applications/serial/main.asm +++ b/applications/serial/main.asm @@ -1,5 +1,7 @@ ; serial terminal - spawn sh.fxf on the serial port + opton + ; start an instance of sh.fxf call get_current_disk_id mov r1, r0 diff --git a/applications/sh/main.asm b/applications/sh/main.asm index 5db4c64..e7431f5 100644 --- a/applications/sh/main.asm +++ b/applications/sh/main.asm @@ -1,5 +1,7 @@ ; fox32os shell + opton + const CURSOR: 0x8A const FILL_TERM: 0xF0 const MOVE_CURSOR: 0xF1 diff --git a/applications/terminal/main.asm b/applications/terminal/main.asm index 1ccc024..4b69998 100644 --- a/applications/terminal/main.asm +++ b/applications/terminal/main.asm @@ -1,5 +1,7 @@ ; terminal + opton + ; create the window mov r0, window_struct mov r1, window_title diff --git a/kernel/main.asm b/kernel/main.asm index 94a4737..00b01a9 100644 --- a/kernel/main.asm +++ b/kernel/main.asm @@ -1,5 +1,7 @@ ; fox32os kernel + opton + const LOAD_ADDRESS: 0x03000000 const FOX32OS_VERSION_MAJOR: 0