home.social

#tile3 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #tile3, aggregated by home.social.

  1. @eniko In z80 assembly i would set the stack pointer to the start of the tilemap, if each tile procedure ends with a ret instruction will jump to the next tile procedure.

    Example:
    ```
    tilemap::
    .dw #tile0, #tile1, #tile2, #tile3,#tilemap_end

    draw_tilemap::
    di ;; Disable interrupts
    ld (restore_stack), sp
    ld sp, #tilemap
    ret
    tilemap_end::
    restore_stack = .+1
    ld sp, #00
    ei enable interrupts
    ret
    ```

    I don't know if this kind of tricks can be done in 8086