NeoGeo programming cheatsheet: Difference between revisions
Jump to navigation
Jump to search
m (Link some sections that already have content) |
m (split off sysROM calls into shared, MVS, and CD (which needs to be filled out... need to find the important calls)) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Todo. What's to be included: | Todo. What's to be included: | ||
* [[68k program header|ROM header]] | * [[68k program header|ROM header]] | ||
* [[68k vector table]] + exception stack frames | * [[68k vector table]] + [[68k exception handling|exception stack frames]] | ||
* [[68k interrupts|Interrupts]] | * [[68k interrupts|Interrupts]] | ||
* [[Memory mapped registers|Memmapped registers]] | * [[Memory mapped registers|Memmapped registers]] | ||
* GPU ref + timings ([[Display timing]]) | * GPU ref + timings ([[Display timing]]) | ||
==System ROM Calls== | |||
:''Main Page: [[BIOS calls]]'' | |||
===Shared=== | |||
These calls are shared between cart systems and CD systems. | |||
{|class="wikitable" | |||
! Address | |||
! Short Name | |||
! Description | |||
|- | |||
| 0xC00444 | |||
| <code>[[SYSTEM_RETURN]]</code> | |||
| Returns control to the system ROM. | |||
|- | |||
| 0xC0044A | |||
| <code>[[SYSTEM_IO]]</code> | |||
| Reads inputs and updates the relevant RAM locations. | |||
|- | |||
| 0xC00450 | |||
| <code>[[CREDIT_CHECK]]</code> | |||
| | |||
|- | |||
| 0xC00456 | |||
| <code>[[CREDIT_DOWN]]</code> | |||
| | |||
|- | |||
| 0xC00468 | |||
| <code>[[CARD]]</code> | |||
| Memory card handler. | |||
|- | |||
| 0xC0046E | |||
| <code>[[CARD_ERROR]]</code> | |||
| | |||
|- | |||
| 0xC004C2 | |||
| <code>[[FIX_CLEAR]]</code> | |||
| Clears most of the fix layer, aside from the left and rightmost sides. | |||
|- | |||
| 0xC004C8 | |||
| <code>[[LSP_1st]]</code> | |||
| Set up sprites. | |||
|} | |||
===MVS only=== | |||
These calls only work properly on MVS systems. | |||
{|class="wikitable" | |||
! Address | |||
! Short Name | |||
! Description | |||
|- | |||
| 0xC0045C | |||
| <code>[[READ_CALENDAR]]</code> | |||
| Reads current calendar values into RAM. | |||
|- | |||
| 0xC00462 | |||
| <code>[[SETUP_CALENDAR]]</code> | |||
| Sets up the calendar. | |||
|} | |||
===CD only=== | |||
These calls only work properly on CD systems. | |||
[[Category:Code]] | [[Category:Code]] | ||
[[Category:Tools]] | [[Category:Tools]] |
Latest revision as of 03:36, 29 January 2016
Todo. What's to be included:
- ROM header
- 68k vector table + exception stack frames
- Interrupts
- Memmapped registers
- GPU ref + timings (Display timing)
System ROM Calls
- Main Page: BIOS calls
These calls are shared between cart systems and CD systems.
Address | Short Name | Description |
---|---|---|
0xC00444 | SYSTEM_RETURN
|
Returns control to the system ROM. |
0xC0044A | SYSTEM_IO
|
Reads inputs and updates the relevant RAM locations. |
0xC00450 | CREDIT_CHECK
|
|
0xC00456 | CREDIT_DOWN
|
|
0xC00468 | CARD
|
Memory card handler. |
0xC0046E | CARD_ERROR
|
|
0xC004C2 | FIX_CLEAR
|
Clears most of the fix layer, aside from the left and rightmost sides. |
0xC004C8 | LSP_1st
|
Set up sprites. |
MVS only
These calls only work properly on MVS systems.
Address | Short Name | Description |
---|---|---|
0xC0045C | READ_CALENDAR
|
Reads current calendar values into RAM. |
0xC00462 | SETUP_CALENDAR
|
Sets up the calendar. |
CD only
These calls only work properly on CD systems.