From c005a096ade65e6d5dbba4b6989a0e8452aac0ed Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Tue, 17 Nov 2020 22:05:43 -0500 Subject: [PATCH] botdemo: some more tuning --- bot_demo/botdemo.s | 2 +- bot_demo/commands.s | 9 +++++++++ bot_demo/timeline.inc | 31 ++++++++++++++++--------------- 3 files changed, 26 insertions(+), 16 deletions(-) diff --git a/bot_demo/botdemo.s b/bot_demo/botdemo.s index 640cef98..040d3d1a 100644 --- a/bot_demo/botdemo.s +++ b/bot_demo/botdemo.s @@ -141,7 +141,7 @@ not_trigger: command: .byte $00 which: .byte $00 -timeout: .byte 10 +timeout: .byte 8 ; original timeout trigger: .byte $00 original_stack: .byte $00 diff --git a/bot_demo/commands.s b/bot_demo/commands.s index 0d1d092b..3f6d3bc3 100644 --- a/bot_demo/commands.s +++ b/bot_demo/commands.s @@ -131,7 +131,16 @@ bottom_loop: ;============================= ;============================= do_run: + + lda which_file ; is actually +1 at this point + cmp #5 ; raster + beq no_home + + cmp #7 + bcs no_home + jsr HOME +no_home: lda #