snicklin Posted November 27, 2016 Share Posted November 27, 2016 I've got some old Assembly code of mine which is in Data statements in BASIC. They're in decimal (i.e 0-255) I (quite honestly) can't be bothered to manually go through all the code and work out what the Assembly statements are. Is there a utility that I can run it through which will convert it to Assembly language, only requiring me to type the numbers in? Quote Link to comment Share on other sites More sharing options...
kenjennings Posted November 27, 2016 Share Posted November 27, 2016 You could create a binary load file. PUT the $FF $FF bytes for the header to the file. PUT the low byte then high byte of the starting address. PUT the low byte then the high byte of the ending address. (Starting address + number of Bytes - 1) Then PUT the bytes values of your data. For the sake of just loading the file into memory it doesn't matter much if you you don't recall the actual starting address of the machine code. Once you get it into a load file you can put it into memory and look at it with all kinds of debuggers. That should help figure out what the real addresses should be. 1 Quote Link to comment Share on other sites More sharing options...
snicklin Posted November 27, 2016 Author Share Posted November 27, 2016 You could create a binary load file. PUT the $FF $FF bytes for the header to the file. PUT the low byte then high byte of the starting address. PUT the low byte then the high byte of the ending address. (Starting address + number of Bytes - 1) Then PUT the bytes values of your data. For the sake of just loading the file into memory it doesn't matter much if you you don't recall the actual starting address of the machine code. Once you get it into a load file you can put it into memory and look at it with all kinds of debuggers. That should help figure out what the real addresses should be. That's a good idea Ken. I knew there'd be a way but this way didn't come to mind - nice one, thanks! 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.