2020-03-05 08:11:16 +00:00
#00-0
<END
7 bit incrementer using 7 half adders
yes i just implemented a full on logic circuit in tsc using negative event numbers in order to count how many items the player collected. just wait until i have to parse it in the god forsaken credits using credit tsc
A B | S C
---------
0 0 | 0 0
0 1 | 1 0
1 0 | 1 0
1 1 | 0 1
Flags
-------
1 |4001
2 |4002
4 |4003
8 |4004
16|4005
32|4006
64|4007
C |4100
First bit: A = XXX1, B = 1
A==0 : A=1, B=0 (change both)
#00.'
<FLJ4001:00.(<FL+4001<FL-4100<EVE00.)
A==1 : A=0, B=1 (change both)
#00.(
<FL-4001<FL+4100<EVE00.)
Second bit: A = XXX2, B = 1XX1
#00.)
<FLJ4002:00.*<FLJ4100:00.+<EVE00.-
A==0, B==0 : A=0, B=0 (no change)
#00.*
<FLJ4100:00.,<EVE00.-
A==1, B==0 : A=1, B=0 (no change)
#00.+
<FL+4002<FL-4100<EVE00.-
A==0, B==1 : A=1, B=0 (change both)
#00.,
<FL-4002<EVE00.-
A==1, B==1 : A=0, B=1 (unset A)
Third bit: A = XXX3, B = 1XX1
#00.-
<FLJ4003:00..<FLJ4100:00./<EVE00/'
A==0, B==0 : A=0, B=0 (no change)
#00..
<FLJ4100:00.0<EVE00/'
A==1, B==0 : A=1, B=0 (no change)
#00./
<FL+4003<FL-4100<EVE00/'
A==0, B==1 : A=1, B=0 (change both)
#00.0
<FL-4003<EVE00/'
A==1, B==1 : A=0, B=1 (unset A)
Fourth bit: A = XXX4, B = 1XXX
#00/'
<FLJ4004:00/(<FLJ4100:00/)<EVE00/+
A==0, B==0 : A=0, B=0 (no change)
#00/(
<FLJ4100:00/*<EVE00/+
A==1, B==0 : A=1, B=0 (no change)
#00/)
<FL+4004<FL-4100<EVE00/+
A==0, B==1 : A=1, B=0 (change both)
#00/*
<FL-4004<EVE00/+
A==1, B==1 : A=0, B=1 (unset A)
Fifth bit: A = XXX5, B = 1XXX
#00/+
<FLJ4005:00/,<FLJ4100:00/-<EVE00//
A==0, B==0 : A=0, B=0 (no change)
#00/,
<FLJ4100:00/.<EVE00//
A==1, B==0 : A=1, B=0 (no change)
#00/-
<FL+4005<FL-4100<EVE00//
A==0, B==1 : A=1, B=0 (change both)
#00/.
<FL-4005<EVE00//
A==1, B==1 : A=0, B=1 (unset A)
Sixth bit: A = XXX6, B = 1XXX
#00//
<FLJ4006:00/0<FLJ4100:000'<EVE000)
A==0, B==0 : A=0, B=0 (no change)
#00/0
<FLJ4100:000(<EVE000)
A==1, B==0 : A=1, B=0 (no change)
#000'
<FL+4006<FL-4100<EVE000)
A==0, B==1 : A=1, B=0 (change both)
#000(
<FL-4006<EVE000)
A==1, B==1 : A=0, B=1 (unset A)
Seventh bit: A = XXX7, B = 1XXX
#000)
<FLJ4007:000*<FLJ4100:000+<EVE000/
A==0, B==0 : A=0, B=0 (no change)
#000*
<FLJ4100:000,<EVE000/
A==1, B==0 : A=1, B=0 (no change)
#000+
<FL+4007<FL-4100<EVE000/
A==0, B==1 : A=1, B=0 (change both)
#000,
<FL-4007<EVE000/
A==1, B==1 : A=0, B=1 (unset A)
#000/
2020-03-05 11:47:17 +00:00
<END in case i want additional behavior after incrementing
2019-03-15 06:54:40 +00:00
#0000
<END
#0001
2019-09-02 03:47:56 +00:00
<PRI<MSG<TUREmpty.<NOD<END
2019-03-15 06:54:40 +00:00
#0002
<AMJ0002:0003<PRI<MSG<TUR<GIT0002<AM+0002:0000
2020-03-05 11:47:17 +00:00
Got the =Polar Star=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0003
<PRI<MSG<TUR<GIT0013<TAM0002:0013:0000
2020-03-05 11:47:17 +00:00
=Polar Star= became the =Spur=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0004
2019-03-16 12:40:34 +00:00
<PRI
<MSG<TUR<GIT0003
2019-03-15 06:54:40 +00:00
Got the =Fireball=!<WAI0025<NOD<CLR
2020-03-05 11:47:17 +00:00
<FLJ2801:0006<FL+2801<AM+0003:0000<EVE0015
2019-03-15 06:54:40 +00:00
#0005
2019-03-16 12:40:34 +00:00
<PRI
<MSG<TUR<GIT0001
2019-03-15 06:54:40 +00:00
Got the =Snake=!<WAI0025<NOD<CLR
2020-03-05 11:47:17 +00:00
<FLJ2801:0006<FL+2801<AM+0001:0000<EVE0015
2019-03-15 06:54:40 +00:00
#0006
2019-09-03 06:49:23 +00:00
<PRI<MSG<TURYou may trade the =Fireball=
2019-03-16 12:40:34 +00:00
with the =Snake= and vice-versa
2021-03-26 10:33:17 +00:00
at the computer in Arthur's House.<WAI0050<NOD<FL+2802
<CLRTrade now?<YNJ0015<AMJ0001:0043<TAM0003:0001:0000<EVE0015
2019-03-15 06:54:40 +00:00
#0007
2019-03-29 01:05:54 +00:00
<PRI<MSG<TUR<GIT0007<AM+0007:0100<FL+2820
2020-03-05 11:47:17 +00:00
Got the =Bubbler=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0008
<PRI<MSG<TUR<GIT0004<AM+0004:0100
2020-03-05 11:47:17 +00:00
Got the =Machine Gun=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0009
2019-03-16 12:40:34 +00:00
<PRI
<MSG<TUR<GIT0009
2019-03-15 06:54:40 +00:00
Got the =Blade=!<WAI0025<NOD<CLR
2020-03-05 11:47:17 +00:00
<FLJ2810:0011<FL+2810<AM+0009:0000<EVE0015
2019-03-15 06:54:40 +00:00
#0010
2019-03-16 12:40:34 +00:00
<PRI
<MSG<TUR<GIT0012
2019-03-15 06:54:40 +00:00
Got the =Nemesis=!<WAI0025<NOD<CLR
2020-03-05 11:47:17 +00:00
<FLJ2810:0011<FL+2810<AM+0012:0000<EVE0015
2019-03-15 06:54:40 +00:00
#0011
2019-09-03 06:49:23 +00:00
<PRI<MSG<TURYou may trade the =Nemesis=
2019-03-16 12:40:34 +00:00
with the =Blade= and vice-versa
2021-03-26 10:33:17 +00:00
at the computer in Arthur's House.<WAI0050<NOD<FL+2811
<CLRTrade now?<YNJ0015<AMJ0009:0044<TAM0012:0009:0000<EVE0015
2019-03-16 02:40:09 +00:00
#0012
<PRI<MSG<TUR<GIT1006Got a =Life Capsule=!<ML+0003
2020-03-05 11:47:17 +00:00
Max health increased by 3!<WAI0025<NOD<EVE0015
2019-03-16 02:40:09 +00:00
#0013
<PRI<MSG<TUR<GIT1006Got a =Life Capsule=!<ML+0004
2020-03-05 11:47:17 +00:00
Max health increased by 4!<WAI0025<NOD<EVE0015
2019-03-16 02:40:09 +00:00
#0014
<PRI<MSG<TUR<GIT1006Got a =Life Capsule=!<ML+0005
2020-03-05 11:47:17 +00:00
Max health increased by 5!<WAI0025<NOD<EVE0015
2020-03-05 08:11:16 +00:00
#0015
<EVE00.' Shortcut to increment the item counter. much easier than remembering that ridiculous event number
2019-03-15 06:54:40 +00:00
#0016
2019-03-16 07:43:05 +00:00
<PRI<MSG<TUR
2019-03-15 06:54:40 +00:00
Do you want to save?<YNJ0000<FL+0431<SVP<CLRGame saved.<NOD<END
#0017
2019-03-16 07:43:05 +00:00
<PRI<SAT<FLJ0201:0018
2019-03-15 06:54:40 +00:00
<LI+1000<SOU0020<AE+<MSG
Health refilled.<NOD<END
#0018
<PRI
<LI+1000<SOU0020<AE+<MSG
Health and missiles refilled.<NOD<END
#0019
2019-09-08 03:21:48 +00:00
<KEY<MSG<TUR
Do you want to rest?<YNJ0000<FAO0004<CMU0000<WAI0020<CLR<TUR.....<NOD<CLO
2019-03-15 06:54:40 +00:00
<WAI0050
2019-09-08 03:21:48 +00:00
<LI+1000<SOU0020<MYD0002<MSG<TUR
2019-03-15 06:54:40 +00:00
Health restored.<NOD<CLO<RMU<FAI0004<END
2020-02-26 05:14:33 +00:00
2019-03-16 02:40:09 +00:00
#0020
2020-12-15 08:33:25 +00:00
<FL+0274<IT+0014<FLJ5006:0026<SNP0136:0000:0000:0000<EVE0021
2019-03-16 02:40:09 +00:00
#0021
2020-02-26 19:20:34 +00:00
<FLJ5004:0025<FLJ5003:0024<FLJ5002:0023<FLJ5001:0022
2020-02-26 05:14:33 +00:00
<PRI<MSG<TUR<GIT1014<FL+5001
2020-03-05 11:47:17 +00:00
Got a =Puppy=!<WAI0025<NOD<EVE0015
2020-02-26 05:14:33 +00:00
#0022
2019-03-16 02:40:09 +00:00
<PRI<MSG<TUR<GIT1014<FL+5002
2020-03-05 11:47:17 +00:00
Got a second =Puppy=!<WAI0025<NOD<EVE0015
2020-02-26 05:14:33 +00:00
#0023
2019-03-16 02:40:09 +00:00
<PRI<MSG<TUR<GIT1014<FL+5003
2020-03-05 11:47:17 +00:00
Got a third =Puppy=!<WAI0025<NOD<EVE0015
2020-02-26 05:14:33 +00:00
#0024
2019-03-16 12:40:34 +00:00
<PRI<MSG<TUR<GIT1014<FL+5004
2020-03-05 11:47:17 +00:00
Got a fourth =Puppy=!<WAI0025<NOD<EVE0015
2020-02-26 05:14:33 +00:00
#0025
2019-03-16 12:40:34 +00:00
<PRI<MSG<TUR<GIT1014<FL+5005<FL+0593
2020-03-05 11:47:17 +00:00
Got the last =Puppy=!<WAI0025<NOD<EVE0015
2020-02-26 05:14:33 +00:00
#0026
2020-12-15 08:33:25 +00:00
<CNP5274:0136:0000<EVE0021
2020-02-26 05:14:33 +00:00
2019-03-15 06:54:40 +00:00
#0030
2019-03-22 06:09:56 +00:00
<PRI<FLJ2420:0032<FLJ0201:0031<FL+0201<AM+0005:0010<MSG<TUR
2020-03-05 11:47:17 +00:00
<GIT0005Got the =Missile Launcher=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0031
2019-03-22 06:09:56 +00:00
<PRI<AM+0005:0005<MSG<TUR
2020-03-05 11:47:17 +00:00
<GIT0006Max missiles increased by 5!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0032
2019-03-22 06:09:56 +00:00
<PRI<AM+0010:0005<MSG<TUR
2020-03-05 11:47:17 +00:00
<GIT0011Max missiles increased by 5!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0033
2020-02-28 01:12:15 +00:00
<FL+2421<AMJ0005:0034<EVE0030
2019-03-15 06:54:40 +00:00
#0034
2020-02-28 01:12:15 +00:00
<PRI<FL+2420<FL-2421<MSG<TUR<GIT0010<TAM0005:0010:0000
2020-03-05 11:47:17 +00:00
Your Missiles have been powered up!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0035
2019-08-19 09:14:02 +00:00
<PRI<FLJ2420:0037<FLJ0201:0036<FL+0201<MSG<TUR<GIT0005<AM+0005:0029
2020-03-05 11:47:17 +00:00
Got the =Missile Launcher=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0036
2020-03-05 11:47:17 +00:00
<PRI<AM+0005:0024<MSG<TUR<GIT0006Max missiles increased by 24!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0037
2020-03-05 11:47:17 +00:00
<PRI<AM+0010:0024<MSG<TUR<GIT0011Max missiles increased by 24!<WAI0025<NOD<EVE0015
2020-02-28 01:12:15 +00:00
#0038
<FLJ2421:0034<EVE0030
2019-03-15 06:54:40 +00:00
#0040
<KEY<CMU0000<WAI0040<PRI<WAI0040<CMU0003
2019-09-02 03:47:56 +00:00
<MSG<TUR
2019-03-15 06:54:40 +00:00
You have died.<NOD<CLRWant to retry?<YNJ0049<CLO
2019-07-10 20:57:27 +00:00
<FAO0001<WAI0050<FLJ0431:0048<INI
2019-03-15 06:54:40 +00:00
#0041
<KEY<CMU0000<HMC<WAI0040<PRI<WAI0040<CMU0003
2019-09-02 03:47:56 +00:00
<MSG<TUR
2019-03-15 06:54:40 +00:00
You have drowned.<NOD<CLRWant to retry?<YNJ0049<CLO
2019-07-10 20:57:27 +00:00
<FAO0001<WAI0050<FLJ0431:0048<INI
2019-03-15 06:54:40 +00:00
#0042
<KEY<CMU0000<WAI0040<PRI<WAI0040<CMU0003
2019-09-02 03:47:56 +00:00
<MSG<TUR<HMC
2019-03-15 06:54:40 +00:00
You were never seen again...<NOD<CLRWant to retry?<YNJ0049<CLO
2019-07-10 20:57:27 +00:00
<FAO0001<WAI0050<FLJ0431:0048<INI
2021-03-26 10:33:17 +00:00
#0043
<TAM0001:0003:0000<EVE0015 Snake/Fireball trade
#0044
<TAM0009:0012:0000<EVE0015 Blade/Nemesis trade
2019-03-15 06:54:40 +00:00
#0048
2019-07-10 20:57:27 +00:00
<SMC<LDP
2019-03-15 06:54:40 +00:00
#0049
<CLO<FAO0004<ESC
#0051
<PRI<MSG<TUR<GIT1001<IT+0001
2020-03-05 11:47:17 +00:00
Got =Arthur's Key=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0052
<PRI<MSG<TUR<GIT1002<IT+0002<EQ+0002
2020-03-05 11:47:17 +00:00
Got the =Map System=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0053
<PRI<MSG<TUR<GIT1003<IT+0003
2020-03-05 11:47:17 +00:00
Got =Santa's Key=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0054
<PRI<MSG<TUR<GIT1004<IT+0004
2020-03-05 11:47:17 +00:00
Got the =Silver Locket=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0055
<PRI<MSG<TUR<GIT1005<IT+0005
2020-03-05 11:47:17 +00:00
Got the =Beast Fang=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0057
<PRI<MSG<TUR<GIT1007<IT+0007
2020-03-05 11:47:17 +00:00
Got the =ID Card=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0058
<PRI<MSG<TUR<GIT1008<IT+0008
2020-03-05 11:47:17 +00:00
Got the =Jellyfish Juice=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0059
<PRI<MSG<TUR<GIT1009<IT+0009
2020-03-05 11:47:17 +00:00
Got the =Rusty Key=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0060
<PRI<MSG<TUR<GIT1010<IT+0010
2020-03-05 11:47:17 +00:00
Got the =Gum Key=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0061
<PRI<MSG<TUR<GIT1011<IT+0011
2020-03-05 11:47:17 +00:00
Got the =Gum Base=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0062
<PRI<MSG<TUR<GIT1012<IT+0012
2020-03-05 11:47:17 +00:00
Got the =Charcoal=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0063
<PRI<MSG<TUR<GIT1013<IT+0013
2020-03-05 11:47:17 +00:00
Got the =Explosive=!<WAI0025<NOD<EVE0015
2019-03-16 02:40:09 +00:00
#0064
<EVE0020
2019-03-15 06:54:40 +00:00
#0065
<PRI<MSG<TUR<GIT1015<IT+0015
2020-03-05 11:47:17 +00:00
Got the =Life Pot=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0066
<PRI<MSG<TUR<GIT1016<IT+0016
2020-03-05 11:47:17 +00:00
Got the =Cure-All=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0067
<PRI<MSG<TUR<GIT1017<IT+0017
2020-03-05 11:47:17 +00:00
Got the =Clinic Key=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0068
<ITJ0018:0073
2020-02-28 07:13:18 +00:00
<PRI<MSG<TUR<GIT1018<IT+0018<EQ+0001<FL+0742
2020-03-05 11:47:17 +00:00
Got the =Booster v0.8=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0069
<PRI<MSG<TUR<GIT1019<IT+0019<EQ+0004
2020-03-05 11:47:17 +00:00
Got the =Arms Barrier=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0070
<PRI<MSG<TUR<GIT1020<IT+0020<EQ+0008
2020-03-05 11:47:17 +00:00
Got the =Turbocharge=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0071
2019-07-10 20:57:27 +00:00
<PRI<MSG<TUR<GIT1021<IT+0021<EQ+0016<FL+2900
2020-03-05 11:47:17 +00:00
Got =Curly's Air Tank=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0072
<PRI<MSG<TUR<GIT1022<IT+0022
2020-03-05 11:47:17 +00:00
Got the =Nikumaru Counter=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0073
2020-02-28 07:13:18 +00:00
<PRI<MSG<TUR<GIT1023<IT+0023<IT-0018<EQ+0032<EQ-0001<FL+0743<FL-0742
2020-03-05 11:47:17 +00:00
Got the =Booster v2.0=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0074
2020-02-28 07:13:18 +00:00
<IT+0024<EQ+0064<FL+1020
<PRI<MSG<TUR<GIT1024
2020-03-05 11:47:17 +00:00
Got the =Mimiga Mask=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0075
<PRI<MSG<TUR<GIT1025<IT+0025
2020-03-05 11:47:17 +00:00
Got the =Teleporter Room Key=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0076
<PRI<MSG<TUR<GIT1026<IT+0026
2020-03-05 11:47:17 +00:00
Got =Sue's Letter=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0077
<PRI<MSG<TUR<GIT1027<IT+0027
2020-03-05 11:47:17 +00:00
Got the =Controller=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0078
<PRI<MSG<TUR<GIT1028<IT+0028
2020-03-05 11:47:17 +00:00
Got the =Broken Sprinkler=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0079
<PRI<MSG<TUR<GIT1029<IT+0029
2020-03-05 11:47:17 +00:00
Got the =Sprinkler=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0080
<PRI<MSG<TUR<GIT1030<IT+0030
2020-03-05 11:47:17 +00:00
Got the =Tow Rope=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0081
<PRI<MSG<TUR<GIT1031<IT+0031
2020-03-05 11:47:17 +00:00
Got the =Clay Figure Medal=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0082
<PRI<MSG<TUR<GIT1032<IT+0032
2020-03-05 11:47:17 +00:00
Got the =Little Man=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0083
<PRI<MSG<TUR<GIT1033<IT+0033
2020-03-05 11:47:17 +00:00
Got the =Mushroom Badge=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0084
<PRI<MSG<TUR<GIT1034<IT+0034
2020-03-05 11:47:17 +00:00
Got =Ma Pignon=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0085
<PRI<MSG<TUR<GIT1035<IT+0035
2020-03-05 11:47:17 +00:00
Got =Curly's Underwear=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0086
<PRI<MSG<TUR<GIT1036<IT+0036
2020-03-05 11:47:17 +00:00
Got the =Alien Medal=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0087
<PRI<MSG<TUR<GIT1037<IT+0037
2020-03-05 11:47:17 +00:00
Got =Chaco's Lipstick=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0088
2019-03-16 12:40:34 +00:00
<PRI<MSG<TUR<GIT1038<IT+0038<EQ+0128<FL+0722
2020-03-05 11:47:17 +00:00
Got the =Whimsical Star=!<WAI0025<NOD<EVE0015
2019-03-15 06:54:40 +00:00
#0089
<PRI<MSG<TUR<GIT1039<IT+0039
2020-03-05 11:47:17 +00:00
Got the =Iron Bond=!<WAI0025<NOD<EVE0015