Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor gool entry loading #161

Merged
merged 7 commits into from
Feb 15, 2024
Merged

refactor gool entry loading #161

merged 7 commits into from
Feb 15, 2024

Conversation

ManDude
Copy link
Collaborator

@ManDude ManDude commented Feb 10, 2024

Changes the millions of subtypes of GOOLInstruction to static types with methods that can get invoked instead.

Added <> instruction format argument specifier for signed integers (used in branch instructions).

The comments for the GVAR/GVAW instructions can now show the name of the global variable being used.

Changed the names of the following instructions:

  • NOP (in CFL instruction) -> CFL
  • CEQ -> EQL (matches Lisp eql)
  • ANDL -> AND (matches Lisp and)
  • ORL -> OR (matches Lisp or)
  • ANDB -> ANDL (matches Lisp logand)
  • ORB -> ORL (matches Lisp logior)
  • XOR -> XORL (matches Lisp logxor)
  • SLT -> LT
  • SLE -> LTE
  • SGT -> GT
  • SGE -> GTE
  • TST -> TSTA
  • RND -> RAND
  • MOV -> SETF (matches Lisp setf)
  • NOTL -> NOT (matches Lisp not)
  • NOTB -> NOTL (matches Lisp lognot)
  • SHA -> ASH (matches Lisp ash)
  • MOVC -> SETC (set code)
  • PAD -> CPAD (matches GOAL)
  • SPD -> VEL (matches GOAL)
  • TICK -> SYNC
  • RGL -> GVAR
  • WGL -> GVAW
  • CVMR -> COLR
  • CVMW -> COLW
  • VECA -> VEC
  • VECB -> COLL
  • JAL -> CALL
  • JALR -> CALR
  • EVNT -> SEVT
  • EVHR -> RJEV
  • EVHA -> ACEV
  • CHLD -> SPWN
  • CHLF -> SPWF
  • NTRY -> CHNK
  • EVNB -> BEVT
  • EVNC -> CEVT
  • CST -> GO (matches GOAL go/GOOL goto)
  • CNEZ -> GNEZ
  • GEQZ -> GEQZ

@ManDude ManDude merged commit 0e5d661 into deprecate Feb 15, 2024
2 checks passed
@ManDude ManDude deleted the d/refactor-gool branch February 15, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant