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

A solution for Subtraction

A topic by JaykTheJackal created 15 days ago Views: 21
Viewing posts 1 to 1
(1 edit)

Here's what I got:

subleq 0, @IN
subleq 15, @IN
subleq 0, 15
subleq @OUT, 0
subleq 15, 15, 15

No idea how you could do better. Looking at the leader-board, presumably some have. I *guess* it's data dependent but that doesn't fit too well with how things line up. Mine is 28 cycles for 4 tests. The better ones are 20 (most of them) and 21 ( just 1). This makes me think I can remove an instruction somehow.