Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

2 byte load and store intrinsics working in simulator and compiltime #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cakemaster9001
Copy link

@cakemaster9001 cakemaster9001 commented Sep 30, 2021

I created two new intrinsics for working with 2byte variables. The two new instructions are .16 and ,16 and follow the same convention as the 64 and 8-bit versions.

Both are tested in simulation and compilation mode and has expected behavior. They are tested with the following program:

include "std.porth"

//prints 0
mem 0 .16
mem ,16 print

//prints 255
mem 255 .16
mem ,16 print

//prints 256
mem 256 .16
mem ,16 print

//prints 65535
mem 65535 .16
mem ,16 print

//prints 0
mem 65536 .16
mem ,16 print

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant