Avram Posted June 22, 2009 Share Posted June 22, 2009 Can anyone tell me how to convert the data Envision produces to hex? I'm trying to add it to ATasm (as far as I know, ATasm doesn't like decimal numbers but I might be missing something basic as I'm still getting used to assembly). Thanks! Quote Link to comment Share on other sites More sharing options...
NRV Posted June 23, 2009 Share Posted June 23, 2009 Envision 8bits? press the "W" to "write data statements" and select MAC65 format.. I don't remember if you can save the font and the map to different files.. Envision PC? you use "E" to export the font and "S" to save a binary map if you already have the data in decimal format I think that you should be able to use it in Atasm.. if you were using MADS you could just include the binary file NRV Quote Link to comment Share on other sites More sharing options...
Avram Posted June 23, 2009 Author Share Posted June 23, 2009 Thanks for the response NRV. Yes, it's Envision PC. The problem is when I try adding the decimal data in .BYTE format to Atasm - it still compiles but gives an error. So I realize I should have asked is it possible to use decimal values after the .BYTE command? eg: .BYTE $FF, F3, A1... etc works whereas .BYTE 192,43,22... etc causes the emulator I'm testing code in to crash Quote Link to comment Share on other sites More sharing options...
Avram Posted June 23, 2009 Author Share Posted June 23, 2009 Or, more simply, how do I bring EnvisionPC data into ATasm? Quote Link to comment Share on other sites More sharing options...
Sheddy Posted June 23, 2009 Share Posted June 23, 2009 Envision 8bits? press the "W" to "write data statements" and select MAC65 format.. I don't remember if you can save the font and the map to different files.. Envision PC? you use "E" to export the font and "S" to save a binary map if you already have the data in decimal format I think that you should be able to use it in Atasm.. if you were using MADS you could just include the binary file NRV Hi Avram, you can include the binary file in ATasm by using .incbin Quote Link to comment Share on other sites More sharing options...
Avram Posted June 23, 2009 Author Share Posted June 23, 2009 Excellent - I'll give that a go. Thanks Sheddy! Quote Link to comment Share on other sites More sharing options...
Avram Posted June 23, 2009 Author Share Posted June 23, 2009 Well, no luck so far. At the beginning of my code I link to a test character set (gotten by Exporting from Envision PC) with the following: *=$800.INCBIN TESTER And the TESTER file looks something like this: .BY 0,0,0,0,0,0,0,0 .BY 0,24,24,24,24,0,24,0 .BY 0,102,102,102,0,0,0,0 .BY 0,102,255,102,102,255,102,0 And all I manage to do is crash the emulator! Any ideas what I'm doing wong? Quote Link to comment Share on other sites More sharing options...
Sheddy Posted June 23, 2009 Share Posted June 23, 2009 (edited) Well, no luck so far. At the beginning of my code I link to a test character set (gotten by Exporting from Envision PC) with the following: *=$800.INCBIN TESTER And the TESTER file looks something like this: .BY 0,0,0,0,0,0,0,0 .BY 0,24,24,24,24,0,24,0 .BY 0,102,102,102,0,0,0,0 .BY 0,102,255,102,102,255,102,0 And all I manage to do is crash the emulator! Any ideas what I'm doing wong? Ah, OK, that isn't a binary file. You need to use .INCLUDE rather than .INCBIN However it should have .BYTE at beginning of lines. Export to MAC/65 should make it do that. Decimal values will work fine, doen't have to be Hex for ATasm. Maybe something else is causing the crash. Maybe try and manually enter a few of the .BYTE lines and see if you still get crashes then Edited June 23, 2009 by Sheddy Quote Link to comment Share on other sites More sharing options...
Avram Posted June 24, 2009 Author Share Posted June 24, 2009 (edited) Okay - that looks promising.Thank-you. *Update* - that did it! Thank-you Chris! Edited June 24, 2009 by Avram 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.