Equity First Bank San Francisco ATM offline - Exapunks


Here is my solution for Equity First Bank San Francisco ATM Offline (97,47,3)

GRAB 301
COPY F T
COPY F X
DROP
GRAB 300
LINK 800
LINK 800
REPL 199
COPY F M
SEEK 999
MARK CREDIT
COPY M F
COPY T F
COPY 1 F
COPY 0 F
JUMP CREDIT
MARK DEBIT
GRAB M
MODE
COPY F M
MODE
COPY T M
SEEK 999
COPY T F
COPY X F
COPY 1 F
COPY 0 F
MARK 199
GRAB 199
COPY M T
MODE
MARK NEXT
REPL DEBIT
COPY F M
TEST EOF
TJMP KILL
COPY M T
JUMP NEXT
MARK KILL
COPY M T
COPY 300 F
@REP 4
NOOP
@END
KILL
HALT