Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Last active December 3, 2019 10:43
Show Gist options
  • Save Alex4386/904bd376bc0279686f23b96e768f14af to your computer and use it in GitHub Desktop.
Save Alex4386/904bd376bc0279686f23b96e768f14af to your computer and use it in GitHub Desktop.
16-bit assembly information for contributing ReC98 Project

Registers

  • ax, bx, cx, dx general purpose registers (16 bits)

ah: 8bit from front (a-HIGH)
al: 8bit from back (a-LOW)

  • ip, sp, bp ip: instruction pointer
    sp, bp: stack stuff. get it?

  • si, di string copy:
    source to destination.

  • shl, shr: shift SHift Left

Macros

Rec98 Specific

  • nopcall: LDATA found? nop else call func (PC-98 compatibilities)
  • setfarfp: "Avoids specifying both segment and offset of a function."
  • pushSS_: push stack segment (ss)
  • pushCX_: push cx register
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment