blog:x68_devcode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blog:x68_devcode [2020/07/12 15:27] – [TVRAM Operations] johnblog:x68_devcode [2020/08/07 21:22] (current) – [X68000 C Code Examples] john
Line 1: Line 1:
-====== X68000 C Code Examples ======+====== Sharp X68000 C Code Examples ======
  
 Here are some example code listings to compile and run on the Sharp X68000. They demonstrate how to use some of the built-in system calls. Here are some example code listings to compile and run on the Sharp X68000. They demonstrate how to use some of the built-in system calls.
Line 1530: Line 1530:
  
 Writing another 16bit value to 0xE20000, 0xE40000 and 0xE60000 will result in the bit patterns being overlaid and generating a different colour for those first 16 pixels. Writing another 16bit value to 0xE20000, 0xE40000 and 0xE60000 will result in the bit patterns being overlaid and generating a different colour for those first 16 pixels.
 +
 +Using this planar arrangement means you only need to write 64 x 16bit words to set every pixel in a row to be on or off... of course if you want them to be different colours you then need to write other patterns to the other text planes. It's swings and roundabouts to trade off.
  
 TO-DO - further explanation of how the colour of the pixels is determined (palette lookup). TO-DO - further explanation of how the colour of the pixels is determined (palette lookup).
  • blog/x68_devcode.1594564054.txt.gz
  • Last modified: 2020/07/12 15:27
  • by john