lazyboy-0.2.0.1: An EDSL for programming the Game Boy.

Copyright(c) Rose 2019
LicenseBSD3
Maintainerrose@lain.org.uk
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Lazyboy.Target.ASM

Contents

Description

This module provides a backend to format opcodes as ASM and produce assembly files which are then buildable into ROMs (with RGBDS).

Synopsis

Documentation

compileROM :: Lazyboy a -> IO Text Source #

Compiles an action to an assembly source file. This function makes use of a "bare" template, which sets up an appropriate start location for the body of the program and defines an entry point label main.

Orphan instances

Show Instruction Source #

A custom Show instance which formats Instructions as assembly.

Instance details

PrintfArg Label Source # 
Instance details

PrintfArg Register16 Source #

Instances of PrintfArg

Instance details

PrintfArg Register8 Source # 
Instance details

PrintfArg Condition Source # 
Instance details

PrintfArg Location Source # 
Instance details