Skip to content

Instantly share code, notes, and snippets.

View mk2s's full-sized avatar

Maki Kato mk2s

View GitHub Profile
@mk2s
mk2s / px8sl.z80
Last active October 2, 2024 14:49
px8 code snippet to read a byte from slave space
; code snippet to read a byte from slave space
.org 9900h
ld a, 0c0h
ld (0f358h), a
ld hl, retaddr
push hl
ld hl, (1)
ld de, 72H ; bios slave command
add hl, de
ld de, packet
@mk2s
mk2s / px8sl.asm
Created September 29, 2024 02:22
px8 read from slave memory
ld a, 0c0h
-- This file is copyright by Grant Searle 2014
-- You are free to use this file in your own projects but must never charge for it nor use it without
-- acknowledgement.
-- Please ask permission from Grant Searle before republishing elsewhere.
-- If you use this file or any part of it, please add an acknowledgement to myself and
-- a link back to my main web site http://searle.hostei.com/grant/
-- and to the "multicomp" page at http://searle.hostei.com/grant/Multicomp/index.html
--
-- Please check on the above web pages to see if there are any updates before using this file.
-- If for some reason the page is no longer available, please search for "Grant Searle"