~rabbits/uxn5

28cb954e7853c4f5d093d2e4ad424114143edd84 — Devine Lu Linvega a month ago 2a4f37b
Added title
2 files changed, 12 insertions(+), 6 deletions(-)

M index.html
M src/programs.js
M index.html => index.html +2 -1
@@ 2,6 2,7 @@
<html>
<head>
	<meta charset="utf-8"/>
	<title>Uxntal Playground</title>
	<script src="src/programs.js"></script>
	<script src="src/emu.js"></script>
	<script src="src/uxn.js"></script>


@@ 61,7 62,7 @@
	</script>
	<style>
		body { max-width:600px; font-family:monospace; padding:30px }
		textarea { resize:none; width:100%; height:250px; border:2px solid #000; border-radius:0px; padding:10px; margin-bottom:0px; }
		textarea { resize:none; width:100%; height:275px; border:2px solid #000; border-radius:0px; padding:10px; margin-bottom:0px; }
		textarea:focus { outline: none !important; border:2px solid black; }
		div#term { width:100%; background:#000; padding:12px; color:white; max-height:60px; overflow:scroll; white-space:pre }
		div#ctrl { margin-bottom:10px }

M src/programs.js => src/programs.js +10 -5
@@ 1,14 1,19 @@
const hello_tal= `@program
const hello_tal= `|0100 ( init )

	;hello-word ;print-text JSR2

BRK

@print-text ( str* -- )

	;hello-word
	&while
		( send ) LDAk #18 DEO
		( loop ) INC2 LDAk ?&while
		( loop ) INC2 LDAk ,&while JCN
	POP2

BRK
JMP2r

@hello-word "Hello 20 "World! 0a00`
@hello-word "Hello 20 "World! 00`

const drifloon_rom = new Uint8Array([
	0xa0, 0x01, 0x07, 0x80, 0x10, 0x37, 0x00, 0x80,