Skip to content

Demonstrate hardware capabilities, exploit custom mods, use its build system as a template

Notifications You must be signed in to change notification settings

GLGPrograms/ceda-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ceda-demo

Demo for the Sanco 800x.

The purpose of this demo is mainly to thinker with the hardware of the mentioned computer, since we are reverse-engineering it, and even writing an emulator.

It also demonstrates some hardware capabilities of the machine, exploits some custom mods, and its build system can be used as a template for new applications in C ans assembly.

This repository is part of the CEDA project by Retrofficina GLG Programs.

C/ASM calling conventions

Because the folks at z88dk were not able to put this plain and simple table in their messy documentation 😄

Prologue

    push    ix
    ld      ix,$0000
    add     ix,sp

Parameters stack

    uint8_t
        ix+$04

    uint8_t, uint8_t
        ix+$04, ix+$05

Access call parameters

    ld      a,(ix+$04)
    ld      a,(ix+$05)

Return value

    uint32_t    de (msb), hl (lsb)
    uint16_t    hl
    uint8_t     l
    void*       hl

Epilogue

    pop     ix
    ret

About

Demonstrate hardware capabilities, exploit custom mods, use its build system as a template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published