-
Notifications
You must be signed in to change notification settings - Fork 3
/
kernel.asm
1107 lines (968 loc) · 40.7 KB
/
kernel.asm
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
org 0x7e00
jmp 0x0000:_Set
section .text
Welcome_string db ' Ola usuario, seja bem vindo!', 13, 10, 0
Ready db 'Esta pronto para jogar (D&D)?', 13, 10, 0
Ready_yes db 'Sim, estou pronto', 13, 10, 0
Ready_no db 'Nao, desejo aguardar mais um pouco', 13, 10, 0
Use_keys db '(Use as teclas w ou s para selecionar)', 13, 10, 0
When_u_ready db ' Quando estiver pronto tecle', 13, 10, 0
Enter_to_menu db ' Enter para ir ao menu ou ESC para sair', 13, 10, 0
Bars db '----------------------------------------', 13, 10, 0
Slime_name db ' >> SLIME << ', 13, 10, 0
Dragon_name db ' >> SMAUG, THE DRAGON << ', 13, 10, 0
Attack db ' { Attack } | USER STATUS ', 13, 10, 0
Power db ' { Power } | *DMG 15 ', 13, 10, 0
Power_CD db ' { Power }(Next turn)| *DMG 15', 13, 10, 0
Run db ' { Run } | *LIFE ', 0
Death db ' "Only death, awaits you. . ."', 13, 10, 0
Coward db ' You are a coward, you deserve to die ', 13, 10, 0
Congratulations db ' Parabens! (Enter para continuar)', 13, 10, 0
Boss_Fight db ' PREPARE-SE, BOSS FIGHT ', 13, 10, 0
Enter_to_continue db ' Pressione enter para continuar', 13, 10, 0
dragon db 50, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 2, 2, 8, 8, 14, 14, 8, 8, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 2, 2, 14, 14, 14, 14, 8, 8, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 2, 2, 14, 14, 8, 8, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 2, 2, 2, 2, 14, 14, 8, 8, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 2, 2, 2, 2, 8, 8, 8, 8, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 2, 2, 2, 2, 8, 8, 8, 8, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 2, 2, 2, 2, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 8, 8, 2, 2, 2, 2, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 8, 8, 2, 2, 2, 2, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 14, 14, 14, 14, 14, 8, 8, 8, 8, 2, 2, 2, 2, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 14, 14, 14, 14, 14, 8, 8, 8, 8, 2, 2, 2, 2, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 14, 14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15, 15, 15, 15, 15, 15, 8, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 14, 14, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 8, 8, 8, 8, 14, 14, 8, 8, 8, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 8, 14, 14, 14, 14, 14, 14, 14, 14, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 8, 14, 14, 14, 14, 14, 14, 14, 14, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 8, 8, 8, 8, 14, 14, 8, 8, 8, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 14, 14, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 14, 14, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 14, 14, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 14, 14, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 14, 14, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 8, 8, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 8, 8, 8, 8, 8, 8, 8, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 15, 15, 15, 15, 15, 15, 8, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 0, 0, 0, 15, 15, 15, 15, 15, 15, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 8, 15, 0, 0, 15, 15, 0, 15, 15, 15, 15, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 15, 15, 15, 15, 15, 15, 15, 0, 0, 15, 15, 15, 15, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 15, 15, 0, 0, 0, 15, 15, 0, 0, 15, 15, 15, 8, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 15, 15, 8, 0, 0, 0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 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8
initPixel:
mov al,13h ; the mode
mov ah,0 ; function number 0
int 10h ; call BIOS Screen Service
ret
putPixel:
; mov al, Cor do Pixel
; mov cx, X (0 a 319)
; mov dx, Y (0 a 199)
mov ah,0ch
int 10h
ret
printGrave:
call initPixel
mov cx, 0
mov dx, 0
mov si, grave
add si, 2
loopgrave:
cmp dx, 16
je endloopgrave
loopgrave2:
cmp cx, 256
je endloopgrave2
lodsb
call putPixel
inc cx
jmp loopgrave2
endloopgrave2:
inc dx
jmp loopgrave
endloopgrave:
ret
printDragon:
call initPixel
mov cx, 120
mov dx, 30
mov si, dragon
add si, 2
loopdragon:
cmp dx, 80
je endloopdragon
loopdragon2:
cmp cx, 170
je endloopdragon2
lodsb
call putPixel
inc cx
jmp loopdragon2
endloopdragon2:
inc dx
mov cx, 120
jmp loopdragon
endloopdragon:
ret
printSlime:
call initPixel
mov cx, 120
mov dx, 30
mov si, slime
add si, 2
loopslime:
cmp dx, 80
je endloopslime
loopslime2:
cmp cx, 170
je endloopslime2
lodsb
call putPixel
inc cx
jmp loopslime2
endloopslime2:
inc dx
mov cx, 120
jmp loopslime
endloopslime:
ret
multNewline:
call _newline
call _newline
call _newline
call _newline
call _newline
call _newline
call _newline
call _newline
ret
_tostr_level_1:
push 0
_loop_num:
cmp ax, 0
je _endloop_num
mov bx, 10
xor dx, dx
div bx
add dx, 48
push dx
jmp _loop_num
_endloop_num:
pop ax
cmp ax, 0
je _endprint
push ax
mov ax, gs
cmp ax, 40
jge _tostr_level_1_green
cmp ax, 20
jge _tostr_level_1_yellow
jmp _tostr_level_1_red
jmp _endloop_num
_tostr_level_1_green:
pop ax
call _putchar_green
jmp _endloop_num
_tostr_level_1_yellow:
pop ax
call _putchar_yellow
jmp _endloop_num
_tostr_level_1_red:
pop ax
call _putchar_red
jmp _endloop_num
_endprint:
ret
_tostr_boss:
push 0
_loop_boss_num:
cmp ax, 0
je _endloop_boss_num
mov bx, 10
xor dx, dx
div bx
add dx, 48
push dx
jmp _loop_boss_num
_endloop_boss_num:
pop ax
cmp ax, 0
je _endprint_boss
call _putchar_green
jmp _endloop_boss_num
_endprint_boss:
ret
_User_life_bar:
mov al, ' '
call _putchar
_tostr_user_life:
push 0
mov ax, fs
_loop_user_num:
cmp ax, 0
je _endloop_user_num
mov bx, 10
xor dx, dx
div bx
add dx, 48
push dx
jmp _loop_user_num
_endloop_user_num:
pop ax
cmp ax, 0
je _endprint_user
push ax
mov ax, fs
cmp ax, 70
jge _tostr_user_green
cmp ax, 30
jge _tostr_user_yellow
jmp _tostr_user_red
jmp _endloop_user_num
_tostr_user_green:
pop ax
call _putchar_green
jmp _endloop_user_num
_tostr_user_yellow:
pop ax
call _putchar_yellow
jmp _endloop_user_num
_tostr_user_red:
pop ax
call _putchar_red
jmp _endloop_user_num
_endprint_user:
ret
_putchar: ; Label para printar
mov ah, 0eh
mov bl, 0xf ; Bios color = Branco
int 10h
ret
_putchar_green: ; Label para printar
mov ah, 0eh
mov bh, 0
mov bl, 2h ; Bios color = Verde
int 10h
ret
_putchar_red: ; Label para printar
mov ah, 0eh
mov bh, 0
mov bl, 4h ; Bios color = Verde
int 10h
ret
_putchar_yellow: ; Label para printar
mov ah, 0eh
mov bh, 0
mov bl, 14 ; Bios color = Verde
int 10h
ret
_putchar_brown: ; Label para printar
mov ah, 0eh
mov bh, 0
mov bl, 6 ; Bios color = Verde
int 10h
ret
_getchar: ; Label para ler do teclado
mov ah,0
int 16h
ret
_newline:
mov al, 10
call _putchar
mov al, 13
call _putchar
ret
_print_String: ; printa string
push cx
mov cl, 0
_print_string_loop:
lodsb
cmp cl, al
je _print_String_ret
call _putchar
jmp _print_string_loop
_print_String_ret:
pop cx
ret
_print_String_red: ; printa string
push cx
mov cl, 0
_print_string_red_loop:
lodsb
cmp cl, al
je _print_String_red_ret
call _putchar_red
jmp _print_string_red_loop
_print_String_red_ret:
pop cx
ret
_not_ready_screen:
mov bl, 4h ; Cor preta de fundo
call _Set_background_color
mov si, When_u_ready
call _print_String
call _newline
mov si, Enter_to_menu
call _print_String
call _newline
_await_for_enter:
call _getchar
cmp al, 0x0d
je _Ready_menu
cmp al, 0x1b
je _Exit
jmp _await_for_enter
_greater_bar:
call _getchar
cmp al, 'w'
je _greater_up
cmp al, 's'
je _greater_down
cmp al, 0x0d
je _greater_answer_compare ; IR para a proxima fase depois do menu
_greater_up:
mov ch, 0
jmp _greater_end
_greater_down:
mov ch, 1
jmp _greater_end
_greater_answer_compare:
push bx
mov bh, 1
cmp ch, bh
pop bx
je _not_ready_screen
jne _Level
_greater_end:
jmp _Ready_menu
_Set_background_color:
mov ax, 0
mov ds, ax
mov ah, 0
mov bh, 13h
int 10h
mov ah, 0xb
mov bh, 0
int 10h
ret
_Slime_sprite:
call _newline
mov al, ' '
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
mov al, '{'
call _putchar
mov al, ' '
call _putchar
xor ax, ax
mov ax, gs
call _tostr_level_1
mov al, ' '
call _putchar
mov al, '/'
call _putchar
mov al, ' '
call _putchar
mov al, '6'
call _putchar
mov al, '5'
call _putchar
mov al, ' '
call _putchar
mov al, '}'
call _putchar
ret
_margin:
mov al, ' '
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
ret
_Dragon_sprite:
call multNewline
call _newline
call _newline
call _newline
mov al, ' '
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
call _putchar
mov al, '{'
call _putchar
xor ax, ax
mov ax, gs
call _tostr_boss
mov al, '/'
call _putchar
mov al, ' '
call _putchar
mov al, '9'
call _putchar
call _putchar
call _putchar
call _putchar
mov al, ' '
call _putchar
mov al, '}'
call _putchar
ret
_Damage_sprite:
pusha
mov bl, 4h
call _Set_background_color
call _newline
call _newline
call _newline
call _newline
call _newline
call _newline
call _newline
call _margin
call _margin
mov al, ' '
call _putchar
call _putchar
mov al, '{'
call _putchar
mov al, ' '
call _putchar
mov al, 'H'
call _putchar
mov al, 'I'
call _putchar
mov al, 'T'
call _putchar
mov al, ' '
call _putchar
mov al, '}'
call _putchar
mov cx, 0006H ; CX:DX = 00068480h Pause for about 0.4 sec
mov dx, 8480H
mov ah, 86h ; BIOS.Delay
int 15h
popa
ret
time_delay:
call delay_set
call delay_set
call delay_set
call delay_set
call delay_set
call delay_set
ret
delay_set:
pusha
mov dx, 0
delay:
inc dx
mov cx, 0
time:
inc cx
cmp cx, 10000
jne time
cmp dx, 1000
je end_delay
jmp delay
end_delay:
popa
ret
_Set:
xor ax, ax
mov ds, ax
mov es, ax
mov bx, ax
mov cx, ax
_Ready_menu:
mov bl, 10h ; Cor preta de fundo
call _Set_background_color
mov si, Welcome_string
call _print_String
call _newline
call _newline
mov si, Ready
call _print_String
call _newline
cmp ch, 0
je up_arrow
jne down_arrow
up_arrow: ; Printar com a seta na opcao de cima
mov al, '>'
call _putchar
mov si, Ready_yes
call _print_String
call _newline
mov al, ' '
call _putchar
mov si, Ready_no
call _print_String
jmp _Ready_menu_clear
down_arrow: ; printar com a seta na opcao de baixo
mov al, ' '
call _putchar
mov si, Ready_yes
call _print_String
call _newline
mov al, '>'
call _putchar
mov si, Ready_no
call _print_String
_Ready_menu_clear:
call _newline
mov si, Use_keys
call _print_String
xor bx, bx
jmp _greater_bar
_Level:
xor ax, ax
mov bx, ax
mov cx, ax
mov dx, ax
mov ax, 65
mov gs, ax
xor ax, ax
mov ax, 99
mov fs, ax
xor ax, ax
_HUD_Map:
mov bl, 10h ; Cor preta de fundo
call _Set_background_color
_HUD_Generate:
pusha
call printSlime
popa
call _newline
mov si, Slime_name
call _print_String
call multNewline
call _Slime_sprite
call _newline
mov si, Bars
call _print_String
cmp cl, 0
je _HUD_option_1
cmp cl, 1
je _HUD_option_2
cmp cl, 2
je _HUD_option_3
_HUD_option_1:
mov al, '>'
call _putchar
mov si, Attack
call _print_String
call _newline
mov al, ' '
call _putchar
cmp ch, 0
je _HUD_option_1_Power
_HUD_option_1_PowerCD:
mov si, Power_CD
call _print_String
call _newline
jmp _HUD_option_1_continue
_HUD_option_1_Power:
mov si, Power
call _print_String
call _newline
_HUD_option_1_continue:
mov al, ' '
call _putchar
mov si, Run
call _print_String
call _User_life_bar
call _newline
jmp _HUD_get_command
_HUD_option_2:
mov al, ' '
call _putchar
mov si, Attack
call _print_String
call _newline
mov al, '>'
call _putchar
cmp ch, 0
je _HUD_option_2_Power
_HUD_option_2_PowerCD:
mov si, Power_CD
call _print_String
call _newline
jmp _HUD_option_2_continue
_HUD_option_2_Power:
mov si, Power
call _print_String
call _newline
_HUD_option_2_continue:
mov al, ' '
call _putchar
mov si, Run
call _print_String
call _User_life_bar
call _newline
jmp _HUD_get_command
_HUD_option_3:
mov al, ' '
call _putchar
mov si, Attack
call _print_String
call _newline
mov al, ' '
call _putchar
cmp ch, 0
je _HUD_option_3_Power
_HUD_option_3_PowerCD:
mov si, Power_CD
call _print_String
call _newline
jmp _HUD_option_3_continue
_HUD_option_3_Power:
mov si, Power
call _print_String
call _newline
_HUD_option_3_continue:
mov al, '>'
call _putchar
mov si, Run
call _print_String
call _User_life_bar
call _newline
_HUD_get_command:
call _getchar
cmp al, 'w'
je _HUD_Up_validate
cmp al, 's'
je _HUD_Down_Validate
cmp al, 0x0d
je _Player_command
jmp _HUD_get_command
_HUD_Up_validate:
cmp cl, 1
je _HUD_Up
cmp cl, 2
je _HUD_Up
jmp _HUD_get_command_end
_HUD_Up:
push bx
mov bl, 1
sub cl, bl
pop bx
jmp _HUD_get_command_end
_HUD_Down_Validate:
cmp cl, 0
je _HUD_Down
cmp cl, 1
je _HUD_Down
jmp _HUD_get_command_end
_HUD_Down:
push bx
mov bl, 1
add cl, bl
pop bx
_HUD_get_command_end:
jmp _HUD_Map
_Player_command:
cmp cl, 0
je _Player_attack
cmp cl, 1
je _Player_power
cmp cl, 2
je _Player_coward
_Player_attack:
push bx
mov bx, 15
mov ax, gs
sub ax, bx
mov gs, ax
call _Damage_sprite
mov ch, 0
cmp ax, 0
jle _Congratulations_level_1
mov bx, 5
mov ax, fs
sub ax, bx
mov fs, ax
pop bx
jmp _HUD_Map
_Player_power:
cmp ch, 1
je _HUD_Map
push bx
mov bx, 20
mov ax, gs
sub ax, bx
mov gs, ax
call _Damage_sprite
cmp ax, 0
jle _Congratulations_level_1
mov bx, 5
mov ax, fs
sub ax, bx
mov fs, ax
pop bx
mov ch, 1
jmp _HUD_Map
_Player_coward:
xor cx, cx
mov cx, 1
jmp _Exit
_Congratulations_level_1:
mov bl, 10h
call _Set_background_color
call _newline
call _newline
call _newline
call _newline
mov si, Bars
call _print_String
mov si, Congratulations
call _print_String
call _newline
mov si, Bars
call _print_String
_wait_for_enter:
call _getchar
cmp al, 0x0d
je _Be_Ready_BOSS_fight
jmp _wait_for_enter
_Be_Ready_BOSS_fight:
mov bl, 4h
call _Set_background_color
call _newline
call _newline
call _newline
call _newline
mov si, Boss_Fight
call _print_String
mov si, Bars
call _print_String
mov si, Dragon_name
call _print_String
mov si, Bars
call _print_String
call _newline
mov si, Enter_to_continue
call _print_String
_wait_for_enter_boss:
call _getchar
cmp al, 0x0d
je _Boss
jmp _wait_for_enter_boss
_Boss:
xor ax, ax
mov gs, ax
mov fs, ax
mov ax, 99
mov fs, ax
mov ax, 9999
mov gs, ax
_HUD_Boss_map:
mov bl, 10h
call _Set_background_color
_HUD_Boss_Generate:
pusha
call printDragon
popa
call _newline
mov si, Dragon_name
call _print_String
call _Dragon_sprite
call _newline
mov si, Bars
call _print_String
cmp cl, 0
je _HUD_Boss_option_1
cmp cl, 1
je _HUD_Boss_option_2
cmp cl, 2
je _HUD_Boss_option_3
_HUD_Boss_option_1:
mov al, '>'
call _putchar
mov si, Attack
call _print_String
call _newline
mov al, ' '
call _putchar
cmp ch, 0
je _HUD_Boss_option_1_Power
_HUD_Boss_option_1_powerCD:
mov si, Power_CD
call _print_String
call _newline
jmp _HUD_Boss_option_1_continue
_HUD_Boss_option_1_Power:
mov si, Power
call _print_String
call _newline
_HUD_Boss_option_1_continue:
mov al, ' '
call _putchar
mov si, Run
call _print_String
call _User_life_bar
call _newline
jmp _HUD_Boss_get_command
_HUD_Boss_option_2:
mov al, ' '
call _putchar
mov si, Attack
call _print_String
call _newline
mov al, '>'
call _putchar
cmp ch, 0
je _HUD_Boss_option_2_Power
_HUD_Boss_option_2_PowerCD:
mov si, Power_CD
call _print_String
call _newline
jmp _HUD_Boss_option_2_continue
_HUD_Boss_option_2_Power:
mov si, Power
call _print_String
call _newline
_HUD_Boss_option_2_continue:
mov al, ' '
call _putchar
mov si, Run
call _print_String
call _User_life_bar
call _newline
jmp _HUD_Boss_get_command
_HUD_Boss_option_3:
mov al, ' '
call _putchar
mov si, Attack
call _print_String
call _newline
mov al, ' '
call _putchar
cmp ch, 0
je _HUD_Boss_option_3_Power
_HUD_Boss_option_3_PowerCD:
mov si, Power_CD
call _print_String
call _newline
jmp _HUD_Boss_option_3_continue
_HUD_Boss_option_3_Power:
mov si, Power
call _print_String
call _newline
_HUD_Boss_option_3_continue:
mov al, '>'
call _putchar
mov si, Run
call _print_String
call _User_life_bar
call _newline
_HUD_Boss_get_command:
call _getchar
cmp al, 'w'
je _HUD_Boss_up_validate
cmp al, 's'
je _HUD_Boss_down_validate
cmp al, 0x0d
je _Player_Boss_command
jmp _HUD_Boss_get_command
_HUD_Boss_up_validate:
cmp cl, 1
je _HUD_Boss_up
cmp cl, 2
je _HUD_Boss_up
jmp _HUD_Boss_get_command_end
_HUD_Boss_up:
push bx
mov bl, 1
sub cl, bl
pop bx
jmp _HUD_Boss_get_command_end
_HUD_Boss_down_validate:
cmp cl, 0
je _HUD_Boss_down
cmp cl, 1
je _HUD_Boss_down
jmp _HUD_Boss_get_command_end