Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

SIC-1 Solutions

Forum for posting SIC-1 solutions · By jaredkrinke

Subleq Instruction and Output

A topic by greendwin created Feb 09, 2023 Views: 443 Replies: 2
Viewing posts 1 to 2

Well, the solution is easy

subleq @OUT @IN

This solution does read 5 bytes.

BUT there is a solution that can read only 4 bytes.
Do anybody know how to do this?

Developer

The trick is that the task only asks for a single known output, so you don’t actually need to read the input. You can then hide the value somewhere…

Heh, I see. I thought that there is some way to get input without touching @IN register)