View Single Post
Old 25 February 2018, 23:22   #1
pipper
Registered User

 
Join Date: Jul 2017
Location: San Jose
Posts: 94
Whats wrong with this line of assembly?

NF_SUBSECTOR = $8000
...(some code)...
and #~NF_SUBSECTOR,d0


results in:

/home/matze/amigatoolchain/amiga-gcc-out/bin/vasmm68k_mot -Fhunk -phxass -warncomm -nosym -ldots -spaces -m68030 -m68882 -I/home/matze/amigatoolchain/amiga-gcc-out/m68k-amigaos/sys-include -I/home/matze/amigatoolchain/amiga-gcc-out/m68k-amigaos/ndk/include amigaasm/r_engine.asm -o r_engine.o
vasm 1.8b (c) in 2002-2017 Volker Barthelmann
vasm M68k/CPU32/ColdFire cpu backend 2.3b (c) 2002-2017 Frank Wille
vasm motorola syntax module 3.11b (c) 2002-2017 Frank Wille
vasm hunk format output module 2.9b (c) 2002-2017 Frank Wille

error 2037 in line 2529 of "amigaasm/r_engine.asm": immediate operand out of range
> and #~NF_SUBSECTOR,d0
Makefile:163: recipe for target 'r_engine.o' failed


I believe the ~ somehow turns the value into a 32bit value... but how can I convey to vasm to just use it as word sized?
pipper is offline  
 
Page generated in 0.03951 seconds with 11 queries