flat assembler
Message board for the users of flat assembler.

Index > Main > [fasmg] sad spinlock

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
dosmancer



Joined: 20 Feb 2025
Posts: 24
Location: Kingdom of Sweden
dosmancer 16 May 2025, 13:24
macomics wrote:
Code:
pause equ db 0xf3, 0x90      

Much more elegant and less computationally expensive resource


Code:
pause equ db 0xf3, 0x90
pause    

Code:
        pause
Processed: pause
Error: illegal instruction.    

Unless my brain is not working then you can't do that.

Tomasz wrote earlier in this thread a way to make that specific thing work: A macro processing every unrecognized line in the code then using `transform`, but I don't think that way of doing it is recommended.

_________________
fasm68k
Post 16 May 2025, 13:24
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 1158
Location: Russia
macomics 16 May 2025, 14:25
Code:
$ cat ./test-pause.asm
pause equ db 0xf3, 0x90
pause

$ fasm ./test-pause.asm
flat assembler  version 1.73.32  (16384 kilobytes memory, x64)
1 passes, 2 bytes.
$ fasmg ./test-pause.asm
flat assembler  version g.kkod
./test-pause.asm [2]:
        pause
Processed: pause
Error: illegal instruction.    


Description:
Filesize: 24.49 KB
Viewed: 200 Time(s)

Снимок экрана_20250516_182518.png


Description:
Filesize: 40.78 KB
Viewed: 200 Time(s)

Снимок экрана_20250516_182449.png


Post 16 May 2025, 14:25
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.