flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > jmp to missing label crashes FASM

Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 3043
Location: vpcmipstrm
bitRAKE
Code:
org $100
  int3
  jmp @B
  ret    
I'm only posting this because it took me some time to find what was crashing FASM - maybe, it'll save someone else the trouble. Some over zealous editing deleted the label - which was the first @@: in the code - leaving nothing to jump back to. Rather than error FASM just crashes.

...back to coding...
Post 14 Jan 2008, 04:54
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Post 14 Jan 2008, 05:24
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3043
Location: vpcmipstrm
bitRAKE
thanks, I need to update. Embarassed
Post 14 Jan 2008, 05:41
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3043
Location: vpcmipstrm
bitRAKE
More label fun...
Code:
 jmp What..
 jmp What..0

What.:
    nop
.:  jmp .
    nop
.0: jmp .0    
This is an interesting 'feature'.
Post 15 Jan 2008, 19:26
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
haha yeah but it is not unexpected at all.
Post 15 Jan 2008, 19:30
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3043
Location: vpcmipstrm
bitRAKE
Since there are only two levels of label scoping it would be a mistake to assume anything else. For example,
Code:
What.:

.: jmp ..    
No such label as "..". Or:
Code:
What.Is:

.what: jmp .Is.what    
again...no such label.
Post 15 Jan 2008, 19:43
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1288
Location: Paradise Falls
Picnic
bitRAKE wrote:
..it took me some time to find what was crashing FASM

he he, same here bitRAKE, i also missed Loco's thread Smile
Post 15 Jan 2008, 20:09
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3043
Location: vpcmipstrm
bitRAKE
thimis, I like the Full Board and Full Hex games. I've played versions in the past which required multiple passes over the spaces - certainly adds another dimension to the game.
Post 15 Jan 2008, 21:28
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1288
Location: Paradise Falls
Picnic
Thanks for the visit bitRAKE. Smile
Post 18 Jan 2008, 23:31
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.