arkamnite / llvm-project

Fork of LLVM 15 to enable support for the Game Boy target which is developed here.
http://llvm.org
2 stars 0 forks source link

(comp): GameBoyInstructionSet #7

Open arkamnite opened 1 year ago

arkamnite commented 1 year ago

Complete GameBoy Instruction Set description.

It will naturally take a very long time to complete the entire instruction set description, and there are likely to be clashes with the existing AVR instructions and lowering those to DAG. There are specific key tasks which must be at least formalised, before the existing implementations are modified:

  1. [x] Devise a calling convention; refer to SDCC convention if needed.
  2. [x] Categorise instructions into instruction formats; at least determine an exhaustive list of these formats.
  3. [x] Investigate pseudo-instructions.

The necessary files to be modified include: