From e93bd6d11cb97435ee0674f2a0fd07a54ee489c3 Mon Sep 17 00:00:00 2001 From: nmlgc Date: Tue, 16 Apr 2024 12:15:03 +0200 Subject: [PATCH] [Maintenance] [th03] Random number ring buffer: Declare the `_far` instance Needs capital letters because of the `pascal` calling convention. Part of P0280, funded by [Anonymous], Blue Bolt, and JonathKane. --- th03/math/randring.hpp | 5 +++++ th03_main.asm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/th03/math/randring.hpp b/th03/math/randring.hpp index 25c32ae4..6e8ab9f0 100644 --- a/th03/math/randring.hpp +++ b/th03/math/randring.hpp @@ -4,6 +4,11 @@ uint16_t near randring1_next16(void); uint16_t pascal near randring1_next16_and(uint16_t mask); uint16_t pascal near randring2_next16_and(uint16_t mask); uint16_t pascal near randring2_next16_mod(uint16_t mask); +#if (GAME == 3) + uint16_t far randring_far_next16(void); + uint16_t pascal far randring_far_next16_and(uint16_t mask); + uint16_t pascal far randring_far_next16_mod(uint16_t mask); +#endif /// Constrained random numbers /// -------------------------- diff --git a/th03_main.asm b/th03_main.asm index 7feea461..a93787cf 100644 --- a/th03_main.asm +++ b/th03_main.asm @@ -16827,7 +16827,7 @@ main_04_TEXT segment byte public 'CODE' use16 assume es:nothing, ss:nothing, ds:_DATA, fs:nothing, gs:nothing RANDRING_NEXT_DEF 2, near -RANDRING_NEXT_DEF _far, far +RANDRING_NEXT_DEF _FAR, far main_04_TEXT ends COLLMAP_TEXT segment byte public 'CODE' use16