The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ASM features EQU and DEFM
#3
boriel Wrote:
LCD Wrote:Hi Boriel. I just adapted a ASM routine for key-redefining from WOS Forum to ZXBC for my next game, and noticed following:
EQU is not supported?

EQU is supported. It should be used this way (if I recall correctly).

Code:
Asm Label EQU 5 * OtherLabel + 3 ; Complex expressions allowed End Asm
I had problems with the code from here:
<!-- m --><a class="postlink" href="http://www.worldofspectrum.org/forums/showpost.php?p=572689&postcount=237">http://www.worldofspectrum.org/forums/s ... tcount=237</a><!-- m -->
Code:
asm ; ---------------------- CONST ------------------- #line 3 BORDCR: EQU 23624 ATTR_P: EQU 23693 ROM_CLS: EQU 3435 CHAN_OPEN: EQU 5633 CC_INK: EQU 16 CC_PAPER: EQU 17 CC_AT: EQU 22 CC_OVER: EQU 21 end asm
This rsults in "Unexpected token 'EQU' [EQU]". Maybe a bug?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)