flat assembler
Message board for the users of flat assembler.

Index > Non-x86 architectures > [6502] Error: Invalid name

Author
Thread Post new topic Reply to topic
AbNerd



Joined: 24 Mar 2014
Posts: 2
AbNerd 24 Mar 2014, 19:34
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:
Error: invalid name.

Description:

Instruction: F459: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:
   
F44E: D0 F3               BNE  SWAP1    
F450: 60                  RTS           
F451: A9 8E     FLOAT     LDA  #$8E     
F453: 85 F8               STA  X1       
F455: A5 F9     NORM1     LDA  M1       
F457: C9 C0               CMP  #$C0     
F459: 30 0C               BMI  RTS1     
F45B: C6 F8               DEC  X1       
F45D: 06 FB               ASL  M1+2
F45F: 26 FA               ROL  M1+1     
F461: 26 F9               ROL  M1
F463: A5 F8     NORM      LDA  X1       
F465: D0 EE               BNE  NORM1    
F467: 60        RTS1      RTS           
F468: 20 A4 F4  FSUB      JSR  FCOMPL   
F46B: 20 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: 3499
Location: Bulgaria
JohnFound 24 Mar 2014, 20:04
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
AbNerd 24 Mar 2014, 20:39
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


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

Website powered by rwasa.