yossibnv Posted November 14, 2014 Share Posted November 14, 2014 I am trying to run assemly code on altirra 2.5 emulator and it crushes i use assembler edtitor rom for the assembler programs following the stack dump : CPU: Illegal instruction hit: 0056 (8158: 14, 30) A=10 X=00 Y=00 S=FF P=30 ( ) 0055: 02 COLCRS bad i've tried differnt cpu & memory setting and it wont help i use 32 bit won 7 os . 10X Quote Link to comment Share on other sites More sharing options...
danwinslow Posted November 14, 2014 Share Posted November 14, 2014 You might want to post some source that can reproduce the problem and some more information in general. Also, this is in the wrong forum I think, you might want to try posting in the 8 bit programming forum. Quote Link to comment Share on other sites More sharing options...
Rybags Posted November 14, 2014 Share Posted November 14, 2014 In CPU options you'd want to allow illegal instructions and have stop on BRK disabled. Prettywell any instruction with low nybble value 2 and some value C will hang a 6502. Remember with the AsmEd cart, one of the most annoying features is that you have to use BRK to exit your program when running from the debugger. An RTS won't return to the debugger properly and can cause a crash sometimes. Quote Link to comment Share on other sites More sharing options...
yossibnv Posted November 14, 2014 Author Share Posted November 14, 2014 Danwinslow,thanks for reply,sorry i am a new member here and i am probably on a learning curve period. i'll move my next posts to the 8 bit programming forum, but since i've got a reply i feel like obligated for responding : Raybags: i've tried to run a simple assembly code: 10 *=$1000 20 LDA #1000 30 END then type BUG and command : G 1000 at the debug prompt ,then appears the crush window as described above i've also tried setting the cpu to the parameters you have suggested and it wont help, i still get this annoying crush win. Quote Link to comment Share on other sites More sharing options...
Rybags Posted December 10, 2014 Share Posted December 10, 2014 Don't rely ever on END to provide clean programming exit. InFact, don't rely on it. Use BRK instructions to terminate a programming run inside AsmEd Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.