[Coco] LWTOOLS for Raspberry Pi

johnmarkmelanie at gmail.com johnmarkmelanie at gmail.com
Tue Jun 25 00:45:06 EDT 2024


All,

LWTOOLS
http://www.lwtools.ca/

unzip or whatever
make

$ cat .bashrc | grep PATH
# JMM Set PATH
PATH=$PATH:/home/johnmark
PATH=$PATH:/home/johnmark/lwtools/lwtools-4.22/lwasm
PATH=$PATH:/home/johnmark/lwtools/lwtools-4.22/lwlink
PATH=$PATH:/home/johnmark/lwtools/lwtools-4.22/extra
PATH=$PATH:/home/johnmark/lwtools/lwtools-4.22/lwar
PATH=$PATH:/home/johnmark/lwtools/lwtools-4.22/lwcc


$ lwasm --help | grep version
  -V, --version               print program version

$ lwasm --version
lwasm from lwtools 4.22

Now let's see what I remember about assembly.

bit_address MACRO NOEXPAND
	ldx #\1/8
	ldb #\1&7
ENDM

temp	rmb 1
temp_bit_0 equ temp*8+0
temp_bit_1 equ temp*8+1
temp_bit_2 equ temp*8+2

	bit_address temp_bit_0
	jsr bit_load
	bit_address temp_bit_1
	jsr bit_and
	bit_address temp_bit_2
	jsr bit_store

How about a Glenside 1-bit computer challenge?
Or would a 4k challenge be better?

-John Mark Mobley




More information about the Coco mailing list