Skip to content

Instantly share code, notes, and snippets.

@taylorza
taylorza / PCBIOS.ASM
Created June 10, 2018 17:37
Old PC BIOS Assembly Language Listing
TITLE (ROM BIOS FOR IBM PERSONAL COMPUTER)
.MODEL COMPACT
OPTION M510
;-------------------
;EQUATES
;-------------------
PORT_A EQU 60H ;8255 PORT A ADDR
PORT_B EQU 61H ;8255 PORT B ADDR
PORT_C EQU 62H ;8255 PORT C ADDR
@taylorza
taylorza / z80_malloc.s
Created January 16, 2022 02:02 — forked from tomstorey/z80_malloc.s
malloc and free implementation in Z80 assembly
heap_start .equ 0x9000 ; Starting address of heap
heap_size .equ 0x0100 ; Number of bytes available in heap
.org 0
jp main
.org 0x100
main:
ld HL, 0x8100
@taylorza
taylorza / ANSI.md
Created March 26, 2023 17:37 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@taylorza
taylorza / disz80.asm
Created July 5, 2024 19:40 — forked from jblang/disz80.asm
John Kerr's DIS-Z80 with Comments
SECTION code_clib
PUBLIC disz80
PUBLIC _disz80
EXTERN fputc_cons
; This code is been found in a ZX Spectrum tool called UTILITY3 v1.3