From 3b62e408ada9827ebb1b131fce322b7fed4d1a3a Mon Sep 17 00:00:00 2001 From: "Matthew D. Steele" Date: Wed, 16 Oct 2024 13:15:15 -0400 Subject: [PATCH] Add fake console NoResponse to ShadowOffice room --- src/fake.asm | 35 +++++++++++++++++++++++++++++++++++ src/fake.inc | 1 + src/rooms/shadow_office.asm | 2 +- 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/fake.asm b/src/fake.asm index 3628422d..f7c21beb 100644 --- a/src/fake.asm +++ b/src/fake.asm @@ -28,6 +28,7 @@ .INCLUDE "machines/carriage.inc" .INCLUDE "machines/emitter.inc" .INCLUDE "machines/lift.inc" +.INCLUDE "machines/semaphore.inc" .INCLUDE "machines/shared.inc" .INCLUDE "macros.inc" .INCLUDE "mmc3.inc" @@ -163,6 +164,7 @@ _Chr0cBank_u8_arr: d_byte InsufficientData, $50 ; TODO d_byte IsThisEthical, $60 ; TODO d_byte NoPower, kChrBankDiagramLift + d_byte NoResponse, kChrBankDiagramSemaphoreComm D_END .ENDPROC @@ -227,6 +229,7 @@ _Fake_eDiagram: d_byte InsufficientData, eDiagram::MinigunDown ; TODO d_byte IsThisEthical, eDiagram::MinigunDown ; TODO d_byte NoPower, eDiagram::Lift + d_byte NoResponse, eDiagram::SemaphoreComm D_END .ENDPROC @@ -325,6 +328,15 @@ _Fake_eDiagram: .addr _NoPower5_u8_arr19 .addr _NoPower5_u8_arr19 .addr _NoPower5_u8_arr19 + d_byte NoResponse + .addr _NoResponse0_u8_arr19 + .addr _NoResponse1_u8_arr19 + .addr _NoResponse2_u8_arr19 + .addr _Blank_u8_arr19 + .addr _NoResponse4_u8_arr19 + .addr _NoResponse5_u8_arr19 + .addr _NoResponse6_u8_arr19 + .addr _NoResponse7_u8_arr19 D_END _Blank_u8_arr19: : .byte " " @@ -439,6 +451,27 @@ _NoPower4_u8_arr19: _NoPower5_u8_arr19: : .byte "9999999999999999999" .assert * - :- = kFakeConsoleMessageCols, error +_NoResponse0_u8_arr19: +: .byte "ERROR: NO RESPONSE " + .assert * - :- = kFakeConsoleMessageCols, error +_NoResponse1_u8_arr19: +: .byte "FROM REMOTE SERVER " + .assert * - :- = kFakeConsoleMessageCols, error +_NoResponse2_u8_arr19: +: .byte "SINCE 2280-05-31 " + .assert * - :- = kFakeConsoleMessageCols, error +_NoResponse4_u8_arr19: +: .byte "EXPONENTIAL BACKOFF" + .assert * - :- = kFakeConsoleMessageCols, error +_NoResponse5_u8_arr19: +: .byte "MODE: NEXT PING IN " + .assert * - :- = kFakeConsoleMessageCols, error +_NoResponse6_u8_arr19: +: .byte "8589934592 SECONDS " + .assert * - :- = kFakeConsoleMessageCols, error +_NoResponse7_u8_arr19: +: .byte "" + .assert * - :- = kFakeConsoleMessageCols, error .ENDPROC ;;; Draws the cursor (if any) for the current fake console window. @@ -527,6 +560,7 @@ _ShapeX_u8_arr: d_byte InsufficientData, $a0 d_byte IsThisEthical, $d0 d_byte NoPower, $77 + d_byte NoResponse, $e0 D_END _ShapeY_u8_arr: D_ARRAY .enum, eFake @@ -536,6 +570,7 @@ _ShapeY_u8_arr: d_byte InsufficientData, $c0 d_byte IsThisEthical, $40 d_byte NoPower, $67 + d_byte NoResponse, $20 D_END .ENDPROC diff --git a/src/fake.inc b/src/fake.inc index 444b9668..ca2f45f5 100644 --- a/src/fake.inc +++ b/src/fake.inc @@ -26,6 +26,7 @@ InsufficientData IsThisEthical NoPower + NoResponse NUM_VALUES .ENDENUM diff --git a/src/rooms/shadow_office.asm b/src/rooms/shadow_office.asm index c02022e0..bb2ad5fa 100644 --- a/src/rooms/shadow_office.asm +++ b/src/rooms/shadow_office.asm @@ -268,7 +268,7 @@ _Devices_sDevice_arr: d_byte Type_eDevice, eDevice::FakeConsole d_byte BlockRow_u8, 5 d_byte BlockCol_u8, 11 - d_byte Target_byte, eFake::InsufficientData ; TODO + d_byte Target_byte, eFake::NoResponse D_END D_STRUCT sDevice d_byte Type_eDevice, eDevice::ScreenGreen