Sunday, 20 May 2012
 
 
A+ | A- | Reset
Forums Support om128/om328p/om644p Compiled code from ZX128ne run on OM128? (0 viewing) 
Go to bottom Post Reply
TOPIC: Compiled code from ZX128ne run on OM128?
#134
spamiam
Posts: 33
graphgraph
User Offline
Compiled code from ZX128ne run on OM128? 3 Years, 9 Months ago  
Is there a way to take compiled code generated by ZBasic for the ZX128ne and run it on the OM128?

-Tony
  The administrator has disabled public write access.
#135
Mike
Posts: 82
graph
User Online Now
Re:Compiled code from ZX128ne run on OM128? 3 Years, 9 Months ago  
The simple answer is no.

The ZX native mode mega128 code will only run on a ZX-128ne because it relies on functionality provided in the ZX native mode boot loader.
  The administrator has disabled public write access.
#136
spamiam
Posts: 33
graphgraph
User Offline
Re:Compiled code from ZX128ne run on OM128? 3 Years, 9 Months ago  
Interesting. The ZX native mode bootloader does more than just provide bootloading functions? It also contains some code commonly used by programs that would normally be linked-in from a pre-written library in a regular C program? Do you know what sort of functions the bootloader section provides?

I wrote a very simple (maybe too simple) program that did nearly nothing other than do a debug.print of some elements of bytevectordata ( which contains all zeros). I did not see any long string of zeros in the ZXB file at all. It looks as if maybe it was optimized away? Apparently the ZXB file is a bunch of 256 byte intel hex file entries. But it is rather smaller than I thought it would be. I suspect that the RTOS functions are the ones contained in the bootloader section, but I am surprised that the bootloader is big enough for all that.

-Tony
 
Last Edit: 2008/08/12 13:11 By spamiam. Reason: added content
  The administrator has disabled public write access.
#137
Mike
Posts: 82
graph
User Online Now
Re:Compiled code from ZX128ne run on OM128? 3 Years, 9 Months ago  
The ZX boot loader is 4K bytes in size (as you can determine from examining the fuses). This is quite a lot of space for all kinds of functionality needed by the ZX platform. I don't know the exact functionality in the boot loader and so any answer here is mere speculation on my part.
  The administrator has disabled public write access.
Go to top Post Reply
All Content Copyright 2005-2011 Oak Micros. All Rights Reserved. See Terms and Conditions.
Powered by Joomla and osCommerce.