Commit Graph

22 Commits

Author SHA1 Message Date
Kitty-Cricket Piapiac ed68439bc5 migrate current documentation to markdown 2023-06-27 04:00:17 -07:00
Kitty-Cricket Piapiac 62453d6377 kmm32(isa):keep flag
as:$ keep flag

keep flag, whether to decrement the stack pointers for
the arguments used in the instruction
e.g. (a--n) --> (a--a n)

this is useful in situations where we want to keep the
arguments on the stack to do something else with, e.g.
a lot of the times we'll do `du fb` or something. now
we can save bytes and just do `$fb`. yippee!
2023-04-04 01:21:07 -07:00
Kitty-Cricket Piapiac 07a7728b01 d/kmm32-as:add examples and clarify and fmt 2023-04-03 01:16:56 -07:00
Kitty-Cricket Piapiac 4a2f26ac46 as:add relative addresses (^ literal)
{d/kmm32-as,s/vim}:{document,highlight} ^ literal

this allows us to create relative addresses easily
eg. `pr ^l ju :l ;` & `pw @l ju :l ;` are equivelant

this also enables us to easily make pascal-style (?)
length-prefixed strings, given the string size is <127:
`:str ^l "meow" :l ; ;`
2023-04-03 01:16:56 -07:00
Kitty-Cricket Piapiac 7d8fc24c8f kmm32(isa):add pr instruction
`pr x` (where x is a byte) puts ip+(int8)x onto the stack
eg. `pr #04 ju xx yy zz` skips bytes xx&yy and jumps to zz
         0  1  2  3  4
         ^
         +- relative to

this allows us to cut down by a full 3 bytes when referring
to labels that are closer than 128 bytes away, and allows
us to relocate less labels
(if we ever have relocatable binaries or something)
2023-03-31 21:05:22 -07:00
Kitty-Cricket Piapiac 58ccad23c0 as:first -org sets output origin
should be #0100 for ROMs
2023-03-28 10:04:14 -07:00
Kitty-Cricket Piapiac a29a225e4b d/kmm32:quick F example 2023-03-26 15:15:49 -07:00
Kitty-Cricket Piapiac 897e9c20c0 kmm32:put sw before du and ov 2023-03-26 15:13:08 -07:00
Kitty-Cricket Piapiac 4e1502bd01 d/kmm32-as:document ~ 2023-03-26 15:03:58 -07:00
Kitty-Cricket Piapiac 29cbf8e082 kmm32:add F flag,mr+md-->ss
as:~-->F flag
x:update examples
d:update documentation for kmm32
2023-03-26 15:02:27 -07:00
Kitty-Cricket Piapiac d13d7448a0 d/move IVT doc from kmm32->kip 2023-03-22 22:33:09 -07:00
Kitty-Cricket Piapiac eb26f05414 d/kmm32-as:document -inc and -emb 2023-03-22 12:45:24 -07:00
Kitty-Cricket Piapiac 10d3505039 d/ocument i/o bus 2023-03-16 01:07:40 -07:00
Kitty-Cricket Piapiac 92976927f5 kmm32:IVT sizes
oops i keep forgetting this machine is 32 bit not 64 bit
2023-03-08 16:15:17 -08:00
Kitty-Cricket Piapiac 77ca44ff2d d/kmm32-as 2023-03-08 16:08:36 -08:00
Kitty-Cricket Piapiac 3381ee7ae5 kmm32:stack size 2023-03-08 12:23:58 -08:00
Kitty-Cricket Piapiac 42bcc7b758 d/ocument instruction set 2023-03-03 12:55:24 -08:00
Kitty-Cricket Piapiac 836535568d kmm32:make stack pointers hardware registers 2023-03-03 12:39:54 -08:00
Kitty-Cricket Piapiac b6217659c6 kip:mouse interrupts 2023-03-02 15:45:28 -08:00
Kitty-Cricket Piapiac 0957c9d893 kip:vsync&mouse 2023-03-02 15:14:09 -08:00
Kitty-Cricket Piapiac 2cfcc15ee9 kmm32:add IVT&change reset ip 2023-03-02 11:40:25 -08:00
Kitty-Cricket Piapiac 4448f01905 documentation skeleton 2023-03-02 02:48:53 -08:00