-
Notifications
You must be signed in to change notification settings - Fork 3
/
Project.lst
2312 lines (2164 loc) · 89.3 KB
/
Project.lst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Microsoft (R) Macro Assembler Version 14.00.24210.0 06/09/17 18:06:36
AddTwo.asm Page 1 - 1
INCLUDE Irvine32.inc
C ; Include file for Irvine32.lib (Irvine32.inc)
C
C ;OPTION CASEMAP:NONE ; optional: make identifiers case-sensitive
C
C INCLUDE SmallWin.inc ; MS-Windows prototypes, structures, and constants
C .NOLIST
C .LIST
C
C INCLUDE VirtualKeys.inc
C ; VirtualKeys.inc
C .NOLIST
C .LIST
C
C
C .NOLIST
C .LIST
C
INCLUDE Macros.inc
C .NOLIST
C .LIST
C
INCLUDE VirtualKeys.inc
C ; VirtualKeys.inc
C
C ; Standard MS-Windows Virtual Key definitions
C
= 00000001 C VK_LBUTTON = 01H
= 00000002 C VK_RBUTTON = 02H
= 00000003 C VK_CANCEL = 03H
= 00000008 C VK_BACK = 08H
= 00000009 C VK_TAB = 09H
= 0000000C C VK_CLEAR = 0cH
= 0000000D C VK_RETURN = 0dH
= 00000010 C VK_SHIFT = 10H
= 00000011 C VK_CONTROL = 11H
= 00000012 C VK_MENU = 12H
= 00000013 C VK_PAUSE = 13H
= 00000014 C VK_CAPITAL = 14H
= 0000001B C VK_ESCAPE = 1bH
= 00000020 C VK_SPACE = 20H
C
= 00000021 C VK_PRIOR = 21H
= 00000022 C VK_NEXT = 22H
= 00000023 C VK_END = 23H
= 00000024 C VK_HOME = 24H
= 00000025 C VK_LEFT = 25H
= 00000026 C VK_UP = 26H
= 00000027 C VK_RIGHT = 27H
= 00000028 C VK_DOWN = 28H
C
C ; VK_A thru VK_Z are the same as their ASCII equivalents: 'A' thru 'Z'
C ; VK_0 thru VK_9 are the same as their ASCII equivalents: '0' thru '0'
C
= 0000002A C VK_PRINT = 2aH
= 0000002B C VK_EXECUTE = 2bH
= 0000002C C VK_SNAPSHOT = 2ch ; Printscreen key..
= 0000002D C VK_INSERT = 2dH
= 0000002E C VK_DELETE = 2eH
= 0000002F C VK_HELP = 2fH
C
= 00000060 C VK_NUMPAD0 = 60H
= 00000061 C VK_NUMPAD1 = 61H
= 00000062 C VK_NUMPAD2 = 62H
= 00000063 C VK_NUMPAD3 = 63H
= 00000064 C VK_NUMPAD4 = 64H
= 00000065 C VK_NUMPAD5 = 65H
= 00000066 C VK_NUMPAD6 = 66H
= 00000067 C VK_NUMPAD7 = 67H
= 00000068 C VK_NUMPAD8 = 68H
= 00000069 C VK_NUMPAD9 = 69H
= 0000006A C VK_MULTIPLY = 6AH
= 0000006B C VK_ADD = 6BH
= 0000006C C VK_SEPARATER = 6CH
= 0000006D C VK_SUBTRACT = 6DH
= 0000006E C VK_DECIMAL = 6EH
= 0000006F C VK_DIVIDE = 6FH
C
= 00000070 C VK_F1 = 70H
= 00000071 C VK_F2 = 71H
= 00000072 C VK_F3 = 72H
= 00000073 C VK_F4 = 73H
= 00000074 C VK_F5 = 74H
= 00000075 C VK_F6 = 75H
= 00000076 C VK_F7 = 76H
= 00000077 C VK_F8 = 77H
= 00000078 C VK_F9 = 78H
= 00000079 C VK_F10 = 79H
= 0000007A C VK_F11 = 7aH
= 0000007B C VK_F12 = 7bH
= 0000007C C VK_F13 = 7cH
= 0000007D C VK_F14 = 7dH
= 0000007E C VK_F15 = 7eH
= 0000007F C VK_F16 = 7fH
= 00000080 C VK_F17 = 80H
= 00000081 C VK_F18 = 81H
= 00000082 C VK_F19 = 82H
= 00000083 C VK_F20 = 83H
= 00000084 C VK_F21 = 84H
= 00000085 C VK_F22 = 85H
= 00000086 C VK_F23 = 86H
= 00000087 C VK_F24 = 87H
C
= 00000090 C VK_NUMLOCK = 90H
= 00000091 C VK_SCROLL = 91H
C
00000000 .data
= 0dh,0ah endl EQU <0dh,0ah> ; end of line sequence
00000000 message LABEL BYTE
00000000 20 20 20 20 20 BYTE " " ,endl
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 0D
0A
0000004C 20 20 20 20 20 BYTE " " ,endl
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 0D
0A
00000098 20 20 20 20 20 BYTE " __ __ _______ __ _ _______ __ __ _______ __ _ " ,endl
20 5F 5F 20 20
20 5F 5F 20 20
5F 5F 5F 5F 5F
5F 5F 20 20 5F
5F 20 20 20 20
5F 20 20 5F 5F
5F 5F 5F 5F 5F
20 20 5F 5F 20
20 20 5F 5F 20
20 5F 5F 5F 5F
5F 5F 5F 20 20
5F 5F 20 20 20
20 5F 20 20 20
20 20 20 20 0D
0A
000000E4 20 20 20 20 20 BYTE " | | | || _ || | | || || |_| || _ || | | | " ,endl
7C 20 20 7C 20
7C 20 20 7C 7C
20 20 20 5F 20
20 20 7C 7C 20
20 7C 20 20 7C
20 7C 7C 20 20
20 20 20 20 20
7C 7C 20 20 7C
5F 7C 20 20 7C
7C 20 20 20 5F
20 20 20 7C 7C
20 20 7C 20 20
7C 20 7C 20 20
20 20 20 20 0D
0A
00000130 20 20 20 20 20 BYTE " | |_| || |_| || |_| || ___|| || |_| || |_| | " ,endl
7C 20 20 7C 5F
7C 20 20 7C 7C
20 20 7C 5F 7C
20 20 7C 7C 20
20 20 7C 5F 7C
20 7C 7C 20 20
20 20 5F 5F 5F
7C 7C 20 20 20
20 20 20 20 7C
7C 20 20 7C 5F
7C 20 20 7C 7C
20 20 20 7C 5F
7C 20 7C 20 20
20 20 20 20 0D
0A
0000017C 20 20 20 20 20 BYTE " | || || || | __ | || || | " ,endl
7C 20 20 20 20
20 20 20 7C 7C
20 20 20 20 20
20 20 7C 7C 20
20 20 20 20 20
20 7C 7C 20 20
20 7C 20 5F 5F
20 7C 20 20 20
20 20 20 20 7C
7C 20 20 20 20
20 20 20 7C 7C
20 20 20 20 20
20 20 7C 20 20
20 20 20 20 0D
0A
000001C8 20 20 20 20 20 BYTE " | || || _ || || || || || _ | " ,endl
7C 20 20 20 20
20 20 20 7C 7C
20 20 20 20 20
20 20 7C 7C 20
20 5F 20 20 20
20 7C 7C 20 20
20 7C 7C 20 20
7C 7C 20 20 20
20 20 20 20 7C
7C 20 20 20 20
20 20 20 7C 7C
20 20 5F 20 20
20 20 7C 20 20
20 20 20 20 0D
0A
00000214 20 20 20 20 20 BYTE " | _ || _ || | | || |_| || ||_|| || _ || | | | " ,endl
7C 20 20 20 5F
20 20 20 7C 7C
20 20 20 5F 20
20 20 7C 7C 20
7C 20 7C 20 20
20 7C 7C 20 20
20 7C 5F 7C 20
7C 7C 20 7C 7C
5F 7C 7C 20 7C
7C 20 20 20 5F
20 20 20 7C 7C
20 7C 20 7C 20
20 20 7C 20 20
20 20 20 20 0D
0A
00000260 20 20 20 20 20 BYTE " |__| |__||__| |__||_| |__||_______||_| |_||__| |__||_| |__| " ,endl
7C 5F 5F 7C 20
7C 5F 5F 7C 7C
5F 5F 7C 20 7C
5F 5F 7C 7C 5F
7C 20 20 7C 5F
5F 7C 7C 5F 5F
5F 5F 5F 5F 5F
7C 7C 5F 7C 20
20 20 7C 5F 7C
7C 5F 5F 7C 20
7C 5F 5F 7C 7C
5F 7C 20 20 7C
5F 5F 7C 20 20
20 20 20 20 0D
0A
000002AC 20 20 20 20 20 BYTE " " ,endl
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 0D
0A
000002F8 20 20 20 20 20 BYTE " Copyright (C) 2017 Stefan TESANOVIC 2016/675 " ,endl
43 6F 70 79 72
69 67 68 74 20
28 43 29 20 32
30 31 37 20 20
53 74 65 66 61
6E 20 54 45 53
41 4E 4F 56 49
43 20 32 30 31
36 2F 36 37 35
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 0D
0A
00000344 20 20 20 20 20 BYTE " Predrag MITROVIC 2016/678 " ,endl
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
50 72 65 64 72
61 67 20 4D 49
54 52 4F 56 49
43 20 32 30 31
36 2F 36 37 38
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 0D
0A
00000390 20 20 20 20 20 BYTE " " ,endl
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
20 20 20 20 0D
0A
000003DC 000003DC messageSize DWORD ($-message)
000003E0 00000000 consoleHandle HANDLE 0 ; handle to standard output device
000003E4 00000000 bytesWritten DWORD ? ; number of bytes written
000003E8 HANGMAN_GOODGAME_00 LABEL BYTE
000003E8 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
000003F9 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
0000040A 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
0000041B 7C 20 20 20 20 BYTE "| O ",endl
20 20 4F 20 20
20 20 20 20 20
0D 0A
0000042C 7C 20 20 20 20 BYTE "| /|\ ",endl
20 2F 7C 5C 20
20 20 20 20 20
0D 0A
0000043D 7C 20 20 20 20 BYTE "| / \ ",endl
20 2F 20 5C 20
20 20 20 20 20
0D 0A
0000044E 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
0000045F 7C 20 59 4F 55 BYTE "| YOU WIN | ",endl
20 20 20 57 49
4E 20 20 7C 20
0D 0A
00000470 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000481 00000099 messageSizeGoodGame DWORD ($-HANGMAN_GOODGAME_00)
00000485 HANGMAN_GOODGAME_01 LABEL BYTE
00000485 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
00000496 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
000004A7 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
000004B8 7C 20 20 20 20 BYTE "| O_ ",endl
20 20 4F 5F 20
20 20 20 20 20
0D 0A
000004C9 7C 20 20 20 20 BYTE "| /| ",endl
20 2F 7C 20 20
20 20 20 20 20
0D 0A
000004DA 7C 20 20 20 20 BYTE "| / \ ",endl
20 2F 20 5C 20
20 20 20 20 20
0D 0A
000004EB 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
000004FC 7C 20 59 4F 55 BYTE "| YOU WIN | ",endl
20 20 20 57 49
4E 20 20 7C 20
0D 0A
0000050D 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
0000051E HANGMAN_GOODGAME_02 LABEL BYTE
0000051E 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
0000052F 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
00000540 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000551 7C 20 20 20 20 BYTE "| O/ ",endl
20 20 4F 2F 20
20 20 20 20 20
0D 0A
00000562 7C 20 20 20 20 BYTE "| /| ",endl
20 2F 7C 20 20
20 20 20 20 20
0D 0A
00000573 7C 20 20 20 20 BYTE "| / \ ",endl
20 2F 20 5C 20
20 20 20 20 20
0D 0A
00000584 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000595 7C 20 59 4F 55 BYTE "| YOU WIN | ",endl
20 20 20 57 49
4E 20 20 7C 20
0D 0A
000005A6 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
000005B7 HANGMAN_GOODGAME_03 LABEL BYTE
000005B7 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
000005C8 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
000005D9 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
000005EA 7C 20 20 20 20 BYTE "| O_ ",endl
20 20 4F 5F 20
20 20 20 20 20
0D 0A
000005FB 7C 20 20 20 20 BYTE "| /| ",endl
20 2F 7C 20 20
20 20 20 20 20
0D 0A
0000060C 7C 20 20 20 20 BYTE "| / \ ",endl
20 2F 20 5C 20
20 20 20 20 20
0D 0A
0000061D 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
0000062E 7C 20 59 4F 55 BYTE "| YOU WIN | ",endl
20 20 20 57 49
4E 20 20 7C 20
0D 0A
0000063F 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000650 HANGMAN_GAMEOVER_00 LABEL BYTE
00000650 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
00000661 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
00000672 7C 20 20 20 20 BYTE "| O ",endl
20 20 4F 20 20
20 20 20 20 20
0D 0A
00000683 7C 20 20 20 20 BYTE "| /|\ ",endl
20 2F 7C 5C 20
20 20 20 20 20
0D 0A
00000694 7C 20 20 20 20 BYTE "| / \ ",endl
20 2F 20 5C 20
20 20 20 20 20
0D 0A
000006A5 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
000006B6 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
000006C7 7C 20 20 59 4F BYTE "| YOU DIE | ",endl
55 20 20 44 49
45 20 20 7C 20
0D 0A
000006D8 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
000006E9 HANGMAN_GAMEOVER_01 LABEL BYTE
000006E9 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
000006FA 7C 20 20 20 20 BYTE "| / ",endl
20 2F 20 20 20
20 20 20 20 20
0D 0A
0000070B 7C 20 20 20 5F BYTE "| _O ",endl
4F 20 20 20 20
20 20 20 20 20
0D 0A
0000071C 7C 20 20 5F 2F BYTE "| _/\ ",endl
5C 20 20 20 20
20 20 20 20 20
0D 0A
0000072D 7C 20 20 20 5C BYTE "| \ ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
0000073E 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
0000074F 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000760 7C 20 20 59 4F BYTE "| YOU DIE | ",endl
55 20 20 44 49
45 20 20 7C 20
0D 0A
00000771 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000782 HANGMAN_GAMEOVER_02 LABEL BYTE
00000782 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
00000793 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
000007A4 7C 20 20 20 20 BYTE "| O ",endl
20 20 4F 20 20
20 20 20 20 20
0D 0A
000007B5 7C 20 20 20 20 BYTE "| /|\ ",endl
20 2F 7C 5C 20
20 20 20 20 20
0D 0A
000007C6 7C 20 20 20 20 BYTE "| / \ ",endl
20 2F 20 5C 20
20 20 20 20 20
0D 0A
000007D7 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
000007E8 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
000007F9 7C 20 20 59 4F BYTE "| YOU DIE | ",endl
55 20 20 44 49
45 20 20 7C 20
0D 0A
0000080A 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
0000081B HANGMAN_GAMEOVER_03 LABEL BYTE
0000081B 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
0000082C 7C 20 20 20 20 BYTE "| \ ",endl
20 20 20 5C 20
20 20 20 20 20
0D 0A
0000083D 7C 20 20 20 20 BYTE "| O_ ",endl
20 20 20 20 4F
5F 20 20 20 20
0D 0A
0000084E 7C 20 20 20 20 BYTE "| /\_ ",endl
20 20 20 20 2F
5C 5F 20 20 20
0D 0A
0000085F 7C 20 20 20 20 BYTE "| / ",endl
20 20 20 20 20
2F 20 20 20 20
0D 0A
00000870 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000881 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000892 7C 20 20 59 4F BYTE "| YOU DIE | ",endl
55 20 20 44 49
45 20 20 7C 20
0D 0A
000008A3 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
000008B4 HANGMAN_LIVES_06 LABEL BYTE
000008B4 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
000008C5 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
000008D6 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
000008E7 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
000008F8 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000909 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
0000091A 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
0000092B 7C 20 20 20 20 BYTE "| | ",endl
20 20 20 20 20
20 20 20 7C 20
0D 0A
0000093C 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
0000094D HANGMAN_LIVES_05 LABEL BYTE
0000094D 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
0000095E 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
0000096F 7C 20 20 20 20 BYTE "| O ",endl
20 20 4F 20 20
20 20 20 20 20
0D 0A
00000980 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000991 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
000009A2 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
000009B3 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
000009C4 7C 20 20 20 20 BYTE "| | ",endl
20 20 20 20 20
20 20 20 7C 20
0D 0A
000009D5 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
000009E6 HANGMAN_LIVES_04 LABEL BYTE
000009E6 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
000009F7 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
00000A08 7C 20 20 20 20 BYTE "| O ",endl
20 20 4F 20 20
20 20 20 20 20
0D 0A
00000A19 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
00000A2A 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000A3B 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000A4C 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000A5D 7C 20 20 20 20 BYTE "| | ",endl
20 20 20 20 20
20 20 20 7C 20
0D 0A
00000A6E 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000A7F HANGMAN_LIVES_03 LABEL BYTE
00000A7F 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
00000A90 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
00000AA1 7C 20 20 20 20 BYTE "| O ",endl
20 20 4F 20 20
20 20 20 20 20
0D 0A
00000AB2 7C 20 20 20 20 BYTE "| /| ",endl
20 2F 7C 20 20
20 20 20 20 20
0D 0A
00000AC3 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000AD4 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000AE5 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000AF6 7C 20 20 20 20 BYTE "| | ",endl
20 20 20 20 20
20 20 20 7C 20
0D 0A
00000B07 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000B18 HANGMAN_LIVES_02 LABEL BYTE
00000B18 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
00000B29 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
00000B3A 7C 20 20 20 20 BYTE "| O ",endl
20 20 4F 20 20
20 20 20 20 20
0D 0A
00000B4B 7C 20 20 20 20 BYTE "| /|\ ",endl
20 2F 7C 5C 20
20 20 20 20 20
0D 0A
00000B5C 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000B6D 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000B7E 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000B8F 7C 20 20 20 20 BYTE "| | ",endl
20 20 20 20 20
20 20 20 7C 20
0D 0A
00000BA0 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000BB1 HANGMAN_LIVES_01 LABEL BYTE
00000BB1 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
00000BC2 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
00000BD3 7C 20 20 20 20 BYTE "| O ",endl
20 20 4F 20 20
20 20 20 20 20
0D 0A
00000BE4 7C 20 20 20 20 BYTE "| /|\ ",endl
20 2F 7C 5C 20
20 20 20 20 20
0D 0A
00000BF5 7C 20 20 20 20 BYTE "| / ",endl
20 2F 20 20 20
20 20 20 20 20
0D 0A
00000C06 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000C17 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000C28 7C 20 20 20 20 BYTE "| | ",endl
20 20 20 20 20
20 20 20 7C 20
0D 0A
00000C39 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000C4A HANGMAN_LIVES_00 LABEL BYTE
00000C4A 2B 2D 2D 2D 2D BYTE "+------+ ",endl
2D 2D 2B 20 20
20 20 20 20 20
0D 0A
00000C5B 7C 20 20 20 20 BYTE "| | ",endl
20 20 7C 20 20
20 20 20 20 20
0D 0A
00000C6C 7C 20 20 20 20 BYTE "| O ",endl
20 20 4F 20 20
20 20 20 20 20
0D 0A
00000C7D 7C 20 20 20 20 BYTE "| /|\ ",endl
20 2F 7C 5C 20
20 20 20 20 20
0D 0A
00000C8E 7C 20 20 20 20 BYTE "| / \ ",endl
20 2F 20 5C 20
20 20 20 20 20
0D 0A
00000C9F 7C 20 20 20 20 BYTE "| ",endl
20 20 20 20 20
20 20 20 20 20
0D 0A
00000CB0 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
00000CC1 7C 20 20 20 20 BYTE "| | ",endl
20 20 20 20 20
20 20 20 7C 20
0D 0A
00000CD2 2B 2D 2D 2D 2D BYTE "+------------+ ",endl
2D 2D 2D 2D 2D
2D 2D 2D 2B 20
0D 0A
; random number what we generete
00000CE3 00000000 ranNum DWORD ?
;All words what is posible to guess.
;Pick by random generartor and put in selectedWords
00000CE7 42 49 43 59 43 manyWords BYTE "BICYCLE", 0
4C 45 00
00000CEF 43 41 4E 4F 45 BYTE "CANOE", 0
00
00000CF5 53 43 41 54 45 BYTE "SCATEBOARD", 0
42 4F 41 52 44
00
00000D00 4F 46 46 53 49 BYTE "OFFSIDE", 0
44 45 00
00000D08 54 45 4E 4E 49 BYTE "TENNIS", 0
53 00
00000D0F 53 4F 46 54 42 BYTE "SOFTBALL", 0
41 4C 4C 00
00000D18 4B 4E 4F 43 4B BYTE "KNOCKOUT", 0
4F 55 54 00
00000D21 43 48 41 4C 4C BYTE "CHALLENGE", 0
45 4E 47 45 00
00000D2B 53 4C 41 4C 4F BYTE "SLALOM", 0
4D 00
00000D32 4D 41 52 41 54 BYTE "MARATHON", 0
48 4F 4E 00
00000D3B 00 BYTE 0 ; End of list
00000D3C = 00000055 len equ $ - manyWords
; number what we make to know where are you in game
00000D3C 00000000 statusGameLive DWORD ?
;Wordls what we select by rundom code
00000D40 20 20 20 20 20 selectedWords BYTE " ", 0
20 20 20 20 20
20 20 20 20 20
20 20 20 20 20
00
;Use as variable in funcstion for lenght of Array
00000D55 00000000 lengthArray DWORD ?
;Letter what we guess, input from keyboard
00000D59 00 guessLetter BYTE ?
;World what we print with -------,0
00000D5A 00000032 [ guessWords BYTE 50 DUP (?)
00
]
;Array of guess Letter
00000D8C 00000032 [ guessLetterArray BYTE 50 DUP (?)
00
]
00000DBE 41 chardelete BYTE 'A'
;Letter what are unknows, change with -
00000DBF 2D letterDash BYTE '-'
= 000003E8 drowDelay = 1000 ; delay 1 sec
00000DC0 0F var_loop BYTE 15 ; repeat 15 times
00000000 .code
00000000 main PROC
; Get the console output handle:
INVOKE GetStdHandle, STD_OUTPUT_HANDLE
00000000 6A F5 * push -00000000Bh
00000002 E8 00000000 E * call GetStdHandle
00000007 A3 000003E0 R mov consoleHandle,eax
0000000C jump_game_start_again:
; Write a string to the console:
INVOKE WriteConsole,
consoleHandle, ;console output handle
ADDR message, ; string pointer
messageSize, ; string length
ADDR bytesWritten, ; returns num bytes written
0 ; not used
0000000C 6A 00 * push +000000000h
0000000E 68 000003E4 R * push OFFSET bytesWritten
00000013 FF 35 000003DC R * push messageSize
00000019 68 00000000 R * push OFFSET message
0000001E FF 35 000003E0 R * push consoleHandle
00000024 E8 00000000 E * call WriteConsoleA
;Part of code for generate random number from 0 until 9
00000029 B8 0000000A mov eax,10 ;get random 0 to 9
0000002E E8 00000000 E call Randomize ;re-seed generator
00000033 E8 00000000 E call RandomRange
00000038 A3 00000CE3 R mov ranNum,eax ;save random number
;call WriteDec
0000003D E8 00000000 E call Crlf ;new line
;Find a selectedWords base on generate ranNum from manyWords
00000042 8B 15 00000CE3 R mov edx, ranNum ;Index
00000048 E8 000003E7 call find_str ;Returns EDI = pointer to string, we pick world
;Copy find world in variable selectedWords
INVOKE Str_copy,
ADDR [edi],