~kylep

Wisconsin

https://kyleperik.com

Recent activity

Re: [PATCH] Add mac native rom.s 2 months ago

From Kyle Perik to ~rabbits/public-inbox

Looks like as you mentioned, leaving out that line works.

The error I was getting was this when attempting `make run`:

```
src/rom.s:1:19: error: unexpected token in '.section' directive
.section ".rodata"
                  ^
make: *** [build/pdex.dylib] Error 1
```

Otherwise the only other change is adding underscores because of this error:

```

Re: [PATCH] Add mac native rom.s 2 months ago

From Kyle Perik to ~rabbits/public-inbox

This is for uxn-playdate, it enables running games in the playdate
simulator on MacOS. Turns out the expected assembly format is a bit
different.

On Sat, Dec 23, 2023 at 11:01 AM Kyle Perik <kyle@periks.net> wrote:
>
> diff --git a/Makefile b/Makefile
> index 0cf69ce..e416137 100755
> --- a/Makefile
> +++ b/Makefile
> @@ -15,8 +15,10 @@ STACK_SIZE  := 61800
>  LUA_DIR     := Source
>  SRC_DIR     := src
>  BUILD_DIR   := build

[PATCH] Add mac native rom.s 2 months ago

From Kyle Perik to ~rabbits/public-inbox

diff --git a/Makefile b/Makefile
index 0cf69ce..e416137 100755
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,10 @@ STACK_SIZE  := 61800
LUA_DIR     := Source
SRC_DIR     := src
BUILD_DIR   := build
SRC_MAIN    := $(SRC_DIR)/main.c $(SRC_DIR)/rom.s
SRC			:= $(SRC_MAIN) $(SRC_SDK)
ROM_ASM     := $(SRC_DIR)/rom.s
ROM_ASM_MAC := $(SRC_DIR)/rom_mac.s
SRC_MAIN    := $(SRC_DIR)/main.c
SRC         := $(SRC_MAIN) $(SRC_SDK) $(ROM_ASM)
[message trimmed]

[PATCH] Modify controller char code only on keydown 2 months ago

From Kyle Perik to ~rabbits/public-inbox

---
I see .Controller/key always gets overwritten to 0 on keyup, which appears to be a discrepancy with the C version.

I just moved it up a few lines into the conditional already checking for keydown.

 src/devices/controller.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/devices/controller.js b/src/devices/controller.js
index 3c55e14..d024dc0 100644
--- a/src/devices/controller.js
+++ b/src/devices/controller.js
@@ -39,12 +39,12 @@ function Controller(emu) {
		} else if (mask == 0 && event.keyCode < 20) {
[message trimmed]

Re: Flow based programming with uxn 4 months ago

From Kyle Perik to ~rabbits/uxn

Devine-

Looks like uxnasm works again, thank you! I switched it out in the
build script + docs

Also I'm happy to announce I have a function tester working! It's like
a beans version of bicycle! This doesn't show off the full extent of
routing messages, this way you can pretty easily type out short bits
of beans function code to play around with it.

Short Demo: https://stuff.kyleperik.com/beans/beans-fn-tester.mp4
Code: https://git.sr.ht/~kylep/beans/tree/master/item/etc/fn-test.bean

Controls: left+right arrows to navigate, "/" to execute

Re: Flow based programming with uxn 4 months ago

From Kyle Perik to ~rabbits/uxn

Glad it's working mostly!

particles, tictactoe and others are purely graphical, so they must be
run with uxnemu like so:

uxncli bin/beanasm.rom etc/particles.bean > out.can
uxnemu bin/uxnbean.rom out.can

You should see something on screen right away with most.

I will check again tonight to see if uxnasm is working, it's been a
while since I've checked.

On Mon, Oct 2, 2023 at 8:26 AM Hundred Rabbits <hundredrabbits@gmail.com> wrote:

Re: Flow based programming with uxn 4 months ago

From Kyle Perik to ~rabbits/uxn

I've been chipping away at this problem for a while, and I'm happy to
report, beans lang is suitable enough to write some simple toys. My
current goal is to create an environment that can compile fragments on
the fly for more interactive development, but that's still on the way.
Besides the bean programs, it's all written in uxntal. I've documented
a quickstart guide, along with a spec for writing basic programs, and
the philosophy behind the language. All can be found in the project
readme:

https://git.sr.ht/~kylep/beans

So the ideal visual environment is still on the way, but for now
there's a high level language that enables constructing a graph of
nodes. Within each node is a set of i/o ports and handler code to

[PATCH v2] Demonstrating that I can use git-send email 9 months ago

From Kyle Perik to ~sircmpwn/email-test-drive

---
 kyle | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 kyle

diff --git a/kyle b/kyle
new file mode 100644
index 0000000..66cb3d4
--- /dev/null
+++ b/kyle
@@ -0,0 +1 @@
I have successfully used git send-email!
-- 
2.32.1 (Apple Git-133)
[message trimmed]

[PATCH] Add support for pixel fill 9 months ago

From Kyle Perik to ~rabbits/public-inbox

---
 src/devices/ppu.c |  8 ++++++++
 src/devices/ppu.h |  1 +
 src/main.c        | 24 +++++++++++++++++++-----
 3 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/src/devices/ppu.c b/src/devices/ppu.c
index 0f825a7..0a571bb 100644
--- a/src/devices/ppu.c
+++ b/src/devices/ppu.c
@@ -57,6 +57,14 @@ ppu_pixel(Ppu *p, uint8_t fg, uint16_t x, uint16_t y, uint8_t color)
		render(p, offset, 1);
}

[message trimmed]

[PATCH] Demonstrating that I can use git-send email 9 months ago

From Kyle Perik to ~sircmpwn/email-test-drive

---
 kyle | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 kyle

diff --git a/kyle b/kyle
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/kyle
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.32.1 (Apple Git-133)
[message trimmed]