macro1.c fix and deposit-switch issue with the virtual panel

16 views
Skip to first unread message

Matthias Barthel

unread,
Nov 11, 2025, 5:01:23 AM (yesterday) Nov 11
to PiDP-1
I succesfully implement the tcp transfer of IO & AC from and to a esp32 - more later.

in this case a wrote a smal program that transfers a value from the memory to io and the to iot device 12. just for testing whats received on the esp32.

IOT

10/
cli
lio a
iot 12
hlt

a, 000001

the assembler macrto1 & macro1_1 creates the correct lst-file BUT in the binary rim-file the addresspart of the opcode 22 was missing
the line should be 220014 and was after assembling in the binary file 220000.

with the help of github copilot i make 2 small changes in the macro1_1.c (in fuction main()) and now it works. the macro_fix.txt contains the fixed main()-function of macro1_1.c, ich have added a comment in the lines i have changed.

i also try to write the program to the memory manually with the switches, but the depositswitch on my virtual console (i use this for developing and testin on my ubuntu-notebook) was not working, angelo or oscar can you check this ?

Matthias
macro_fix.txt

Malcolm Ray

unread,
Nov 11, 2025, 6:32:50 AM (yesterday) Nov 11
to pid...@googlegroups.com
Firstly, what do you get if you add the missing 'start 10' line at the end of the source file?
Secondly, did you remember that the deposit switch is pushed up, not down? On the virtual console, that means right click, if I remember correctly.
--
You received this message because you are subscribed to the Google Groups "[PiDP-1]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-1+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pidp-1/CAHvYjvGb-EoOEnQ%3D4M-sLYpZSYRfYDR%2Bgm%3DhPRo%2BCWoc1o68xQ%40mail.gmail.com.

Matthias Barthel

unread,
Nov 11, 2025, 6:34:05 AM (yesterday) Nov 11
to [PiDP-1]
thanks for the information, i try both :) 

Matthias Barthel

unread,
Nov 11, 2025, 7:23:33 AM (yesterday) Nov 11
to [PiDP-1]
the start 10 at the end and the right click was the solution! 
thanks!
Reply all
Reply to author
Forward
0 new messages