mirror of
https://github.com/irmen/prog8.git
synced 2025-08-16 05:27:31 +00:00
added pokemon() function
This commit is contained in:
@@ -97,6 +97,7 @@ internal class BuiltinFunctionsAsmGen(private val program: Program, private val
|
|||||||
"peekw" -> funcPeekW(fcall, resultToStack, resultRegister)
|
"peekw" -> funcPeekW(fcall, resultToStack, resultRegister)
|
||||||
"peek" -> throw AssemblyError("peek() should have been replaced by @()")
|
"peek" -> throw AssemblyError("peek() should have been replaced by @()")
|
||||||
"pokew" -> funcPokeW(fcall)
|
"pokew" -> funcPokeW(fcall)
|
||||||
|
"pokemon" -> { /* meme function */ }
|
||||||
"poke" -> throw AssemblyError("poke() should have been replaced by @()")
|
"poke" -> throw AssemblyError("poke() should have been replaced by @()")
|
||||||
"push", "pushw" -> funcPush(fcall, func)
|
"push", "pushw" -> funcPush(fcall, func)
|
||||||
"pop", "popw" -> funcPop(fcall, func)
|
"pop", "popw" -> funcPop(fcall, func)
|
||||||
|
@@ -141,6 +141,7 @@ private val functionSignatures: List<FSignature> = listOf(
|
|||||||
FSignature("peek" , true, listOf(FParam("address", arrayOf(DataType.UWORD))), DataType.UBYTE),
|
FSignature("peek" , true, listOf(FParam("address", arrayOf(DataType.UWORD))), DataType.UBYTE),
|
||||||
FSignature("peekw" , true, listOf(FParam("address", arrayOf(DataType.UWORD))), DataType.UWORD),
|
FSignature("peekw" , true, listOf(FParam("address", arrayOf(DataType.UWORD))), DataType.UWORD),
|
||||||
FSignature("poke" , false, listOf(FParam("address", arrayOf(DataType.UWORD)), FParam("value", arrayOf(DataType.UBYTE))), null),
|
FSignature("poke" , false, listOf(FParam("address", arrayOf(DataType.UWORD)), FParam("value", arrayOf(DataType.UBYTE))), null),
|
||||||
|
FSignature("pokemon" , false, listOf(FParam("address", arrayOf(DataType.UWORD)), FParam("value", arrayOf(DataType.UBYTE))), null),
|
||||||
FSignature("pokew" , false, listOf(FParam("address", arrayOf(DataType.UWORD)), FParam("value", arrayOf(DataType.UWORD))), null),
|
FSignature("pokew" , false, listOf(FParam("address", arrayOf(DataType.UWORD)), FParam("value", arrayOf(DataType.UWORD))), null),
|
||||||
FSignature("pop" , false, listOf(FParam("target", ByteDatatypes)), null),
|
FSignature("pop" , false, listOf(FParam("target", ByteDatatypes)), null),
|
||||||
FSignature("popw" , false, listOf(FParam("target", WordDatatypes)), null),
|
FSignature("popw" , false, listOf(FParam("target", WordDatatypes)), null),
|
||||||
|
@@ -896,6 +896,10 @@ poke(address, value)
|
|||||||
pokew(address, value)
|
pokew(address, value)
|
||||||
writes the word value at the given address in memory, in usual little-endian lsb/msb byte order.
|
writes the word value at the given address in memory, in usual little-endian lsb/msb byte order.
|
||||||
|
|
||||||
|
pokemon(address, value)
|
||||||
|
Attempts to write a byte to a ROM at a location in machine language monitor bank.
|
||||||
|
Doesn't have anything to do with a certain video game.
|
||||||
|
|
||||||
push(value)
|
push(value)
|
||||||
pushes a byte value on the CPU hardware stack. Lowlevel function that should normally not be used.
|
pushes a byte value on the CPU hardware stack. Lowlevel function that should normally not be used.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user