EXAPUNKS

EXAPUNKS

View Stats:
Help for modem level 2
I've made a program that successfully works on test run one, but on test run two it doesn't work. The reason for this is because there are two valid numbers in the same host/file. I know I'm on to something here but I can't think of a way to fix this solution to make it functional on test run two.

Spaghetti Code:


GRAB 300
LINK 800
MARK INITDIAL
TEST EOF
TJMP INITTRAVERSE
COPY F #DIAL
JUMP INITDIAL
MARK PREDIAL
COPY -1 #DIAL
TEST EOF
TJMP END
SEEK 1
COPY 11 T
MARK DIAL
COPY F #DIAL
SUBI T 1 T
TJMP DIAL
REPL TRAVERSEBOT
NOOP
TEST MRD
FJMP PREDIAL
COPY M X
WIPE
HALT
MARK INITTRAVERSE
WIPE
MARK TRAVERSE
LINK 800
REPL COPYCONTACTS
MAKE
MARK RECVCOPYLOOP
COPY M X
TEST X = 404
TJMP RECVCOPYEND
COPY X F
JUMP RECVCOPYLOOP
MARK TRAVERSEBOT
LINK 800
COPY 0 M
MAKE
REPL COPYCONTACTS
JUMP RECVCOPYLOOP
MARK RECVCOPYEND
LINK -1
SEEK -9999
JUMP PREDIAL
MARK COPYCONTACTS
GRAB 200
MARK COPYCONTACTSLOOP
TEST EOF
TJMP COPYCONTACTSEND
COPY F M
JUMP COPYCONTACTSLOOP
MARK COPYCONTACTSEND
COPY 404 M
MARK END
WIPE
Originally posted by Felipe//The Postman:
Here's the overall of what I did:

I kept a list in a file with the numbers available for testing. Since every valid number will only be present in a single contact list, everytime I connected to a new valid number I'd copy all of his contacts to a my list, then return to the main loop of testing numbers for the list. This way a fork in the contact tree is never a problem, as I always will eventually call him.
< >
Showing 1-1 of 1 comments
The author of this thread has indicated that this post answers the original topic.
Here's the overall of what I did:

I kept a list in a file with the numbers available for testing. Since every valid number will only be present in a single contact list, everytime I connected to a new valid number I'd copy all of his contacts to a my list, then return to the main loop of testing numbers for the list. This way a fork in the contact tree is never a problem, as I always will eventually call him.
< >
Showing 1-1 of 1 comments
Per page: 1530 50