diff options
author | B. Watson <yalhcru@gmail.com> | 2021-04-19 16:21:59 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-04-19 16:21:59 -0400 |
commit | d006d16715d70a0e7a6313dfb814166537ad9b6a (patch) | |
tree | 66b13ee40611ca0ceebea738177b54b1924a0755 /console.s | |
parent | 076849d61bba0ad62ac899271700e66f9bf5eea2 (diff) | |
download | taipan-d006d16715d70a0e7a6313dfb814166537ad9b6a.tar.gz |
Save 64 bytes, now at 8622
Diffstat (limited to 'console.s')
-rw-r--r-- | console.s | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -11,7 +11,7 @@ .export _gotox0y22, _gotox0y3, _gotox0y, _gotox0y3_clrtoeol .export _cputc0, _set_orders, _pluralize, _print_combat_msg .export _rvs_on, _rvs_off - .export _prepare_report, _clear_msg_window, _print_item + .export _prepare_report, _clear_msg_window, _print_item, _print_location .importzp tmp3 ; ditto .import _revflag ; conio/revers.s @@ -21,7 +21,7 @@ .import _cprintulong, _cputc, _cprint_taipan, _timed_getch, _orders .import _turbo .import _print_msg, _cspaces - .import _item + .import _item, _location .ifdef CART_TARGET .segment "HIGHCODE" @@ -264,6 +264,14 @@ _print_combat_msg: jsr _print_msg jmp _clrtoeol +; extern void __fastcall__ print_location(char loc) +_print_location: + asl + tay + lda _location,y + ldx _location+1,y + jmp _print_msg + ; extern void __fastcall__ print_item(char item) _print_item: asl |