SDCC calling convention: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

1 January 2024

  • curprev 20:3420:34, 1 January 2024Inari talk contribs 977 bytes +977 Created page with "By default, SDCC uses the stack to provide parameters to function calls, and uses the L. HL or DE - HL registers for return values depending on the size of the return value. {{Table alignment}}SDCC starting in version 4.2.0 introduced changes to the calling conventions used. {| class="wikitable" |+ ! !__sdcccall(0) !__sdcccall(1) !__z88dk_fastcall |- | colspan="4" style="text-align: center; background-color: #eee;" |Return |- |{{Rh}}|8 bits |L |A |L |- |{{Rh}}|16 bits |H..." Tag: Visual edit