Just Jeff Posted January 12, 2019 Share Posted January 12, 2019 Anybody know what this error means? C:\Atari\dasm>dasm BP7e.asm -f3 -v0 -sBP7e.sym -lBP7e.lst -oBP7e.bin segment: CODE fffa vs current org: 10000 ---- 27 bytes before end of RAM ---- 206 bytes free before end of cart. BP7e.asm (2598): error: Origin Reverse-indexed. Its my NMI vector but it all looks fine to me: InitSystem: CLEAN_START ---------------------------------------------------------------------------------------------------------------------------- ORG $FFFA ; set address to 6507 Interrupt Vectors .WORD InitSystem ; NMI .WORD InitSystem ; RESET .WORD InitSystem ; IRQ I've been changing/adding code and I did notice my last successful compile had a much different bytes free amount though I'm sure I didn't add 250 bytes on the last changes I made. C:\Atari\dasm>dasm BP7d.asm -f3 -v0 -sBP7d.sym -lBP7d.lst -oBP7d.bin ---- 27 bytes before end of RAM ---- 462 bytes free before end of cart. Complete. Quote Link to comment Share on other sites More sharing options...
+nanochess Posted January 12, 2019 Share Posted January 12, 2019 It means your ORG directive gets back the instruction pointer. Another way of saying it is that the current instruction pointer is farther than the address in ORG directive. 1 Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted January 12, 2019 Share Posted January 12, 2019 I've been changing/adding code and I did notice my last successful compile had a much different bytes free amount though I'm sure I didn't add 250 bytes on the last changes I made.Do you have an ALIGN 256 statement in your code? If that is currently at e.g. $f800 and you add just one byte before, your loose another 255 bytes from alignment. 1 Quote Link to comment Share on other sites More sharing options...
Just Jeff Posted January 12, 2019 Author Share Posted January 12, 2019 Thanks Thomas- that was it. I have like 3 align 256s.. Quote Link to comment Share on other sites More sharing options...
Just Jeff Posted January 12, 2019 Author Share Posted January 12, 2019 After resolving this, I added more code and got a different error. Is this also due to running out of space? I took out the other two align 256 but it didn't help. C:\Atari\dasm>dasm BP7f.asm -f3 -v0 -sBP7f.sym -lBP7f.lst -oBP7f.bin --- Unresolved Symbol List TransformerGfx 0000 ???? (R ) StartScreen 0000 ???? (R ) StaticDisplay 0000 ???? (R ) PFx_Segment_G_Tab 0000 ???? (R ) AddToScore 0000 ???? (R ) TopBand0 0000 ???? (R ) TopBand1 0000 ???? (R ) TopBand2 0000 ???? (R ) PFx_Segment_BF_Tab 0000 ???? (R ) COIN_HEIGHT 0000 ???? (R ) COLOR_HEIGHT 0000 ???? (R ) PLAYER1_HEIGHT 0000 ???? (R ) PLAYER0_HEIGHT 0000 ???? (R ) PFx_Segment_CE_Tab 0000 ???? (R ) PFx_Segment_A_Tab 0000 ???? (R ) CallFromKernal 0000 ???? (R ) TestPattern 0000 ???? (R ) PFx_Segment_D_Tab 0000 ???? (R ) Player0Gfx 0000 ???? (R ) CoinColor 0000 ???? (R ) PlayerColor 0000 ???? (R ) Player1Gfx 0000 ???? (R ) --- 22 Unresolved Symbols ---- 27 bytes before end of RAM Fatal assembly error: Source is not resolvable. Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted January 12, 2019 Share Posted January 12, 2019 That looks like the labels listed are not assembled. Probably a missing ENDIF. 1 Quote Link to comment Share on other sites More sharing options...
Just Jeff Posted January 12, 2019 Author Share Posted January 12, 2019 Similar to that I think. I put in: Kernel SUBROUTINE .loop .jump END SUBROUTINE Apparently, END SUBROUTINE is a bad idea. Once I removed it, everything cleared up. Thanks again! 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.