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

not a solution (actually a better solution to First Assessment)

A topic by nad2040 created Aug 19, 2022 Views: 288 Replies: 1
Viewing posts 1 to 2
(+1)
@l0: .data 0,0,@l2+3,0,0,0,0,0,0,0,0,0,0,0,0,0
@l1: .data 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
@l2: .data 0,0,0,0,0,@l3+3,0,0,0,0,0,0,@l3+10,0,0,0
@l3: .data 0,0,0,0,0,@l4+3,0,0,0,0,0,0,@l4+10,0,0,0
@l4: .data 0,0,0,0,0,@l5+3,0,0,0,0,0,0,@l5+10,0,0,0
@l5: .data 0,0,0,0,0,@l6+3,0,0,0,0,0,0,@l6+10,0,0,0
@l6: .data 0,0,0,0,0,@l7+3,0,0,0,0,0,0,@l7+10,0,0,0
@l7: .data 0,0,0,0,0,@l2+10,0,0,0,0,0,0,@lc+2,0,0,0
@l8: .data 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
@l9: .data 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
@la: .data 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
@lb: .data 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
@lc: .data 0,0,0,0,@ld+3,0,0,0,0,0,0,0,0,@l2+3,0,0
@ld: .data 0,0,0,0,0,@le+5,0,0,0,0,0,0,@lc+11,0,0,0
@le: .data 0,0,0,0,0,0,0,@le+8,0,0,@ld+10,0,0,0,0,0
@lf: .data 0,0,0,0,0,0,0,0,0,0,0,0,0

This traces a smiley face using the current highlighted instruction in the memory block.

Writing the bytes yourself as data doesn't change "bytes read" but it can help you realize a simpler solution for First Assessment:

(SOLVED; cycles: 8, bytes: 11)

subleq 0, @IN
subleq @OUT, 0

Once the program jumps to address 6, the instruction is essentially

subleq 0, 0, 0

and will automatically clear address 0 and jump there for you.

Developer (1 edit)

Intriguing! I never thought of using the memory to draw pictures. That actually makes me wonder if a new type of puzzle could be added: images/animation. Maybe I'll have to look into making an expansion...

Also, that optimization is great, but I'm afraid someone beat you to it :)

https://itch.io/t/2265164/small-byte-optimization-tip

Regardless, I hearby name you SIC Systems Employee of the Month! ;)