flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Non-x86 architectures > [6502] Error: Invalid name

Author
Thread Post new topic Reply to topic
AbNerd



Joined: 24 Mar 2014
Posts: 2
[6502] Error: Invalid name
I have a bit of assembly I was able to decrypt as part of an online puzzle. I keep getting the same error when I try to run it.

Code:

Errorinvalid name.

Description:

InstructionF459:30 0C BMI RTS1




I've tried renaming the label to several different things in case its some kind of instruction conflict but that hasn't helped. Here's the relevant piece of code:

Code:

   
F44ED0 F3               BNE  SWAP1    
F45060                  RTS           
F451A9 8E     FLOAT     LDA  #$8E     
F45385 F8               STA  X1       
F455A5 F9     NORM1     LDA  M1       
F457C9 C0               CMP  #$C0     
F45930 0C               BMI  RTS1     
F45BC6 F8               DEC  X1       
F45D06 FB               ASL  M1+2
F45F26 FA               ROL  M1+1     
F46126 F9               ROL  M1
F463A5 F8     NORM      LDA  X1       
F465D0 EE               BNE  NORM1    
F46760        RTS1      RTS           
F46820 A4 F4  FSUB      JSR  FCOMPL   
F46B20 7B F4  SWPALGN   JSR  ALGNSWP 



What is going wrong here? Is it actually the BMI instruction? the following instruction? the instruction after the branch? I've never written x86 assembly so I'm a bit at a loss here, I'd love any help.
Post 24 Mar 2014, 19:34
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3436
Location: Bulgaria
This is not x86 assembly language. It is 6502 assembly. I might be wrong, but it remains me the FPBASIC of Apple II. At least the address range fits.
Post 24 Mar 2014, 20:04
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
AbNerd



Joined: 24 Mar 2014
Posts: 2
Hm you're right. Now I need to see if I can get this running in an emulator. Thanks.
Post 24 Mar 2014, 20:39
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.