Skip to content

Commit

Permalink
Minor refactoring in SBTCVM Bench: use more advanced flow control met…
Browse files Browse the repository at this point in the history
…hods for cleaner code.
  • Loading branch information
ThomasTheSpaceFox committed Mar 17, 2021
1 parent 52b9b7b commit eaf0d3f
Show file tree
Hide file tree
Showing 16 changed files with 764 additions and 752 deletions.
541 changes: 272 additions & 269 deletions apps/bench/auto_bench.tdsk1

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions apps/bench/bench/boot.trom

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions apps/bench/bench/boot__stnp.tasm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions apps/bench/bench/credits.trom

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions apps/bench/bench/desktop2.stnp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ end
val @1
set actflg

label main
loop

if actflg,@1 begin
val @0
Expand All @@ -30,13 +30,14 @@ label main
drawcopy @-1
end

label main_loop
{val 0 / set btnbuff}
until btnbuff,@1

asm ioread1;>mouse.button
set btnbuff
gsub common.mouse_cursor

ifnot btnbuff,@1 goto main_loop
end

##### Main screen icon click parser #####

Expand All @@ -62,7 +63,7 @@ label main
ifrange @-120,@-93,xbuff gsub credits

end
goto main
end



Expand Down
Loading

0 comments on commit eaf0d3f

Please sign in to comment.