forked from historicalsource/pinballfantasies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINTRO.ASM
4878 lines (4395 loc) · 81.7 KB
/
INTRO.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
;KOLLA P BUPPEN! (ILLEGAL SPARNING?)
;fADNINGAR GJORDA MED MACROT REPOUTSB, SOM E LITE SL”ARE, TILLR„CKLIGT?????
CHECK1NUM=4EH ;JŽMT!
finmenu=1
showall=0 ;visa mig ALLT! (Snuskigt???)
NOOFWORDS=64 ;OBS S™K SLUMPEN!
demover=0
keyhandler=65h
NOFILLIT=0
bpl=80
IF DEMOVER
trim=67000/16 ;i paragrafer
ELSE
trim=+67000/16 ;i paragrafer
ENDIF
pm_test=0
covtime=28
fl1storlek=110
THETRIM=22
checktrim=-223+14h+20h
checktrim2=24-52+24-138-3+24-61+24-96+24
firstpictime=1
t21sttime=349-28-THETRIM+3
vikingtime=658-17-THETRIM+1
fld_logotime=980-80+9+1-THETRIM+3
presenttime=0
fantasietime=50*30
infotime=0 ;60*25
GURKA=42
LINJEN=8
charwith=18
charheight=14
mellanrum=4
FONTW=18 ;"BOKSTAV-MED"
sdrsizze=35 ;ca sizen p† en sdr!!!
WORDLEN=8 ;EVEN NUMBER!!!!
mod1size=252868
pos1=3 ;mod1size/65536
pos2=56260 ;mod1size-pos1*65536
nosnd_needed=530-sdrsizze ;ska ha ca 2 k mer (start!!)
needed=573-sdrsizze ;ska ha ca 2 k mer (start!!)
lsize=300 ;obs!!!!! KOM I HG KOLLA!!!
basememreq_cp=(needed-lsize) ;free mem required (size needed-size of intro+size of start.exe)
nosoundmemreq_cp=(nosnd_needed-lsize) ;if no music, or XMS detected
nosoundmemreq=basememreq_cp/16*1000+trim-38000/16 ;nosoundmemreq_cp/16*1000+trim
basememreq=basememreq_cp/16*1000+trim
DIST=10
musikkaos=0
menutime=9
texttime=7
intpic2pos=150
t21stpos=0
vikingpos=240
vikingadr=320/4*247
fld_logopos=246*2
nofcolors=64
TEXTCOLOR=60
clear_boxen macro vart_start,bredden,hojden
local lajban_laban_o_lajla_samt_det_lilla_spoket_laban
move es,0a000h
mov al,es:[128/8+3] ;d„r „r det svart min v„n!!
mov cx,hojden
mov di,vart_start
lajban_laban_o_lajla_samt_det_lilla_spoket_laban:
push cx
mov cx,bredden
rep stosb
add di,80
sub di,bredden
pop cx
loop lajban_laban_o_lajla_samt_det_lilla_spoket_laban
endm
repoutsb macro
local lerum
lerum:
outsb
jmp $+2
loop lerum ;n”dv„ndigt l†ngsam!!
endm
STRLEN MACRO DEST,TEXT ;DOES NOT INCLUDE ,0
LOCAL NXTCH,NOMRCC,TEMPCNT
PUSHA
MOV CS:TEMPCNT,0
MOV SI,OFFSET TEXT
NIL BX
NXTCH: LODSB
OR AL,AL
JZ NOMRCC
INC BX
JMP NXTCH
TEMPCNT DB ?
NOMRCC: MOV CS:TEMPCNT,BL
POPA
MOV DEST,CS:[OFFSET TEMPCNT]
ENDM
;SetWBPL <BPLmask> Set write BPL mask
SetWBPL macro BPLmask
mov dx,3c4h
mov ah,BPLmask
mov al,2
out dx,ax
endm
;-)
;SetRBPL <BPL#> Set read BPL# (remember: just ONE at the time)
SetRBPL macro BPLnr
mov dx,3ceh
mov ah,BPLnr
mov al,4
out dx,ax
endm
STRCOPY MACRO DEST,SOURCE
PUSHA
PUSH ES
PUSH OFFSET DEST
PUSH OFFSET SOURCE
POP SI
POP DI
MOVE ES,DS
STRLEN CL,SI
NIL CH
INC CX
REP MOVSB
POP ES
POPA
ENDM
STRCOPY2 MACRO DEST,SOURCE ;DOES NOT COPY ,0
PUSHA
PUSH ES
PUSH OFFSET DEST
PUSH OFFSET SOURCE
POP SI
POP DI
MOVE ES,DS
STRLEN CL,SI
NIL CH
REP MOVSB
POP ES
POPA
ENDM
SIMINT MACRO INTNO
MOVE ES,0
PUSHF
CALL DWORD PTR ES:[INTNO*4]
ENDM
savestack macro
move cs:s_s,ss
mov cs:s_p,sp
endm
restorestack macro
move ss,cs:s_s
mov sp,cs:s_p
endm
borland macro
push es di cx
mov ax,0700h
mov di,0
move es,0b800h
mov cx,160*25/2
rep stosw
pop cx di es
endm
HUGO MACRO NEBUL
LOCAL STRUMPA,FERTICH,SCHLUKA,DUNK
MOV DI,CS:PEKARN
MOV SI,OFFSET NEBUL
MOVE DS,DATA
MOVE ES,0B800H
STRUMPA:
LODSB
CMP AL,'$'
JE FERTICH
CMP AL,13
JE SCHLUKA
CMP AL,10
JE DUNK
STOSB
INC DI
JMP STRUMPA
SCHLUKA:
MOV AX,DI
NIL DX
MOV CX,160
DIV CX
mov bp,ax
MUL CX
mov di,ax
MOV Dx,Bp
mov dh,dl
add dh,2
MOV DL,0
XOR BX,BX
MOV AH,02H
INT 10H
JMP STRUMPA
DUNK:
ADD DI,160
JMP STRUMPA
FERTICH:
MOV CS:PEKARN,DI
ENDM
SPYMESS MACRO MESSAGE
LOCAL MESS,GNU,FERTICH,STRUMPA,schluka,dunk
JMP GNU
MESS DB MESSAGE,'$'
GNU: PUSHA
PUSH DS
MOV AX,CS
MOV DS,AX
MOV Dx,offset cs:mess
mov ax,900h
int 21h
pop ds
popa
ENDM
comment\
SPYMESS MACRO MESSAGE
LOCAL MESS,GNU,FERTICH,STRUMPA,schluka,dunk
JMP GNU
MESS DB MESSAGE,'$'
GNU: PUSHA
PUSH DS ES
MOV AX,CS
MOV DS,AX
MOV DI,CS:PEKARN
MOV SI,OFFSET CS:MESS
MOVE ES,0B800H
STRUMPA:
LODSB
CMP AL,'$'
JE FERTICH
CMP AL,13
JE SCHLUKA
CMP AL,10
JE DUNK
STOSB
INC DI
JMP STRUMPA
SCHLUKA:
MOV AX,DI
NIL DX
MOV CX,160
DIV CX
mov bp,ax
MUL CX
mov di,ax
MOV Dx,Bp
mov dh,dl
add dh,2
MOV DL,0
XOR BX,BX
MOV AH,02H
INT 10H
JMP STRUMPA
DUNK:
ADD DI,160
JMP STRUMPA
FERTICH:
MOV CS:PEKARN,DI
POP ES DS
POPA
ENDM
\
SetLores macro
mov dx,3d4h
mov ax,0c009h
out dx,ax
endm
SetHires macro
mov dx,3d4h
mov ax,4009h
out dx,ax
endm
SetVga macro
;sequencer!
mov dx,3c4h ;mcga
mov ax,0604h ;0e04h
out dx,ax ;chain 4
;CRTC!
mov dx,3d4h
mov ax,0c11h
out dx,ax ;unprotect 0-7 in crtc!
mov ax,5404h
out dx,ax ;Start Hor Retrc.
mov ax,0b06h
out dx,ax
mov ax,3e07h
out dx,ax
mov ax,4009h
out dx,ax
mov ax,590fh
out dx,ax
mov ax,0ea10h
out dx,ax
mov ax,8c11h
out dx,ax
mov ax,0df12h
out dx,ax
mov ax,0014h
out dx,ax
mov ax,0e715h
out dx,ax
mov ax,0416h
out dx,ax
mov ax,0e317h
out dx,ax
;Grapic controler
mov dx,3ceh
mov ax,0005h ;4005h
out dx,ax ;mode reg.
;attribute
mov dx,3dah
in al,dx
mov dx,3c0h
mov al,20h+10h
out dx,al
mov al,25h ;61h
out dx,al ; mode contr
endm
cleargfx macro
LOCAL TRULLE
mov dx,3c4h
mov ax,0f02h
out dx,ax
mova es,0a000h
mov cx,32760 ;vem vet, det kanske blir exception om den ”verskrider
xor ax,ax
mov di,ax
TRULLE: NOP
stosw
NOP
LOOP TRULLE ;TRULLSON ASS!
endm
movpal macro sseg,source,dseg,dest
mov si,source
mov di,dest
push ds
move ds,sseg
move es,dseg
mov cx,16*3
rep movsb
pop ds
endm
checkquit macro
; in al,60h
; cmp al,cs:firstscan
; mov ax,1
; int 16h
; cmp al,01
; je choosern_init
if demover
cmp cs:laddaden,true
je space2
ELSE
cmp cs:laddaden,true
je skip_the_intro_bra_att_hoppa_till_da
endif
endm
FILLMUSICBUF MACRO
LOCAL FILLA
PUSHA
PUSH ES DS
MOV CX,100
FILLA: PUSH CX
MOVE ES,0
MOV AX,8
PUSHF
CALL DWORD PTR ES:[66H*4]
POP CX
LOOP FILLA
POP DS ES
POPA
ENDM
.286p
jumps
wait_sync macro times
local lo,ko,sko
mov cx,times
lo: push cx
synca
IF NOFILLIT
MOVE ES,0
MOV AX,8
PUSHF
CALL DWORD PTR ES:[66H*4]
ENDIF
pop cx
; in al,60h
; cmp al,cs:firstscan
mov ax,1
move es,0
pushf
call dword ptr es:[keyhandler*4]
if demover
cmp al,57
jne sko
mov cs:laddaden,true
sko:
endif
cmp al,57
je skip_the_intro_bra_att_hoppa_till_da
; je ko
loop lo
ko:
endm
wait_music macro times
local lo,ko,sko,TRO
lo:
MOVE ES,0
MOV AX,22
PUSHF
CALL DWORD PTR ES:[66H*4]
cmp ax,times
ja ko
PUSH AX
IF NOFILLIT
MOVE ES,0
MOV AX,8
PUSHF
CALL DWORD PTR ES:[66H*4]
ENDIF
mov ax,1
move es,0
pushf
call dword ptr es:[keyhandler*4]
POP BP
if demover
CMP AL,01
JE SPYAN_STEWART
cmp al,57
jne sko
mov cs:laddaden,true
JMP KO
ELSE
cmp al,57
jne sko
mov cs:laddaden,true
JMP KO
endif
JMP TRO
sko:
MOV AL,3
TRO:
cmp al,1
je SKO
cmp al,57
jne lo
if demover
; mov cs:laddaden,true
jmp lo ;space2
else
jmp LO ;skip_the_intro_bra_att_hoppa_till_da
endif
ko:
endm
wait_sync_spec macro times
local lo,ko,sko
mov cx,times
lo: push cx
synca
IF NOFILLIT
MOVE ES,0
MOV AX,8
PUSHF
CALL DWORD PTR ES:[66H*4]
ENDIF
pop cx
; in al,60h
; cmp al,cs:firstscan
mov ax,1
move es,0
pushf
call dword ptr es:[keyhandler*4]
if demover
cmp al,57
jne sko
mov cs:laddaden,true
sko:
endif
cmp al,57
; je skip_the_intro_bra_att_hoppa_till_da
je ko
loop lo
ko:
endm
wait_sync_spec2 macro times
local lo,ko,sko
mov cx,times
lo: push cx
synca
IF NOFILLIT
MOVE ES,0
MOV AX,8
PUSHF
CALL DWORD PTR ES:[66H*4]
ENDIF
pop cx
; in al,60h
; cmp al,cs:firstscan
mov ax,1
move es,0
pushf
call dword ptr es:[keyhandler*4]
if demover
cmp al,57
jne sko
mov cs:laddaden,true
sko:
endif
; cmp al,57
; je skip_the_intro_bra_att_hoppa_till_da
; je ko
loop lo
ko:
endm
wait_sync2 macro times
local lo,ko,moooo
mov cx,times
mov cs:menunext,false
lo: push cx
synca
IF NOFILLIT
MOVE ES,0
MOV AX,8
PUSHF
CALL DWORD PTR ES:[66H*4]
ENDIF
pop cx
mov ax,1
move es,0
pushf
call dword ptr es:[keyhandler*4]
cmp al,01
je moooo
cmp al,3bh ;f1
je f1t
cmp al,3ch ;f2
je f2t
if finmenu
cmp al,3dh ;f3
je f3t
cmp al,3eh ;f4
je f4t
endif
cmp al,3fh ;f5
je f5t
if finmenu
cmp al,28 ;enter
je moooo
else
cmp al,28 ;enter
je ko
endif
cmp al,57
je moooo
loop lo
jmp moooo
f5t:
mov cs:menunext,true
MOV CS:INFO_TEXT,OFFSET CS:OPTIONS_INFO
jmp moooo
ko:
xor banpek,10b
MOV TEXTLISTA[0],OFFSET HITEXT1
JZ NEDU2
MOV TEXTLISTA[0],OFFSET HITEXT2
NEDU2:
moooo:
endm
fade macro hast,pal1seg,pal1adr,pal2seg,pal2adr
local fada
mov cs:steg,hast
mov cL,cs:steg
; INC CL ;F™R ATT UNDVIKA BAJSET!!!
XOR CH,CH
fada: move ds,data
mov SI,pal2adr
MOV DI,pal1adr
MOVA ES,pal1seg
push ds
mova ds,pal2seg
CALL MAKE_PAL
pop ds
synca
CALL SET_PAL
PUSH ES
MOVE ES,0
IF NOFILLIT
MOV AX,8
PUSHF
CALL DWORD PTR ES:[66H*4]
ENDIF
POP ES
LOOP FADA
endm
fadeM macro hast,pal1seg,pal1adr,pal2seg,pal2adr
local fada,slut,nosetv,oldvol
mov cs:steg,hast
mov cL,cs:steg
XOR CH,CH
fada: move ds,data
mov SI,pal2adr
MOV DI,pal1adr
MOVA ES,pal1seg
push ds
mova ds,pal2seg
CALL MAKE_PAL
pop ds
synca
CALL SET_PAL
mov ax,cx
xchg al,ah
xor dx,dx
mov bx,hast
div bx
push cx
mov cx,ax
and ax,-16
cmp ax,cs:oldvol
je nosetV
mov cs:oldvol,ax
mov al,6
int 66h
nosetV: pop cx
PUSH ES
MOVE ES,0
IF NOFILLIT
MOV AX,8
PUSHF
CALL DWORD PTR ES:[66H*4]
ENDIF
POP ES
LOOP FADA
jmp slut
oldvol dw 0
slut:
endm
;***************
fade1 macro val,steg
mov al,val
mov bl,steg ;+1
sub bl,cl
mul bl
mov bl,steg
div bl
mov dx,3c9h
out dx,al
endm
fade1B macro val,steg
mov al,val
mov bl,steg-1
sub bl,cl
mul bl
mov bl,steg
div bl
mov dx,3c9h
out dx,al
endm
fade3 macro sped
local gnuor
mov cx,sped
gnuor:
mov dx,3c8h
mov al,1
out dx,al
fade1 52,sped
fade1 52,sped
fade1 62,sped
mov dx,3c8h
mov al,12
out dx,al
fade1 37,sped
fade1 37,sped
fade1 45,sped
mov dx,3c8h
mov al,14
out dx,al
fade1 17,sped
fade1 17,sped
fade1 25,sped
synca
loop gnuor
endm
fade3b macro sped
local gnuor
mov cx,0
gnuor:
mov dx,3c8h
mov al,1
out dx,al
fade1B 52,sped
fade1B 52,sped
fade1B 62,sped
mov dx,3c8h
mov al,12
out dx,al
fade1B 37,sped
fade1B 37,sped
fade1B 45,sped
mov dx,3c8h
mov al,14
out dx,al
fade1B 17,sped
fade1B 17,sped
fade1B 25,sped
synca
inc cx
cmp cx,sped
jne gnuor
endm
;************
fade256 macro hast,pal1seg,pal1adr,pal2seg,pal2adr
local fada
mov cs:steg,hast
mov cL,cs:steg
XOR CH,CH
fada: move ds,data
mov SI,pal2adr
MOV DI,pal1adr
MOVA ES,pal1seg
push ds
mova ds,pal2seg
CALL MAKE_PAL256
pop ds
synca
CALL SET_PAL256
PUSH ES
IF NOFILLIT
MOVE ES,0
MOV AX,8
PUSHF
CALL DWORD PTR ES:[66H*4]
ENDIF
POP ES
LOOP FADA
endm
movepic macro nisse,goran
local taljan
mov ax,0a000h
mov es,ax
mov ds,ax
mov cx,95 ;Bildh”jd
mov di,nisse
mov si,goran
taljan: push cx
mov cx,55 ;Linjebredd
rep movsb
add si,80-55
add di,80-55
pop cx
loop taljan
move ds,data
endm
SLACKA MACRO PLATS
MOV CS:FJUMPENS_BROR,PLATS
ENDM
slack macro fjumpen
LOCAL NOTHING_NEW
MOV CX,fjumpen ;CALC CX (HORIZ END)
CMP CX,CS:FJUMPENS_FARSA
JE NOTHING_NEW
SHR CX,2
DEC CX
MOV DX,3D4H ;UNLOCK
MOV AL,11H
MOV AH,0
OUT DX,AX
MOV DX,3D4H ;SET HORIZ END
MOV AL,01H
MOV AH,CL ;(DET MAN VILL HA GENOM 4)
OUT DX,AX
NOTHING_NEW:
endm
setscr macro pos
mov cx,pos
mov dx,3d4h
mov al,0dh
mov ah,cl
out dx,ax
mov ah,ch
dec al
out dx,ax
endm
stacken segment para stack 'stack'
dw 1024 dup (0)
stacken ends
;********************************************* D A T A S E G M E N T ********
data segment para public 'data'
pelle1 db 3*256 dup (0)
pelle2 db 3*256 dup (0)
SKIT DB 'NILSBEDRUP '
pellevin1 dw offset pelle1
pellevin2 dw offset pelle2
buppen_filen dw ?
chksum dw ?
rekord_tabell DB 0,1,11 DUP(0),0,8,1 DUP(0),'QWERTYUIOP',0,0,13,0,'ASDFGHJKL',0,0,0,0,0,'ZXCVBNM',6 dup (0),' ',(128-50-7) dup (0),20 dup (0)
PM_MESS DB 13,10,13,10,'WARNING: Protected mode has been detected!',13,10,13,10
db 'This is probably because you have a memory manager such as',13,10
db 'EMM386 or QEMM installed. Please uninstall this memory manager driver!',13,10
db 'Refer to your manual for further information.',13,10
db 13,10,'Press ESCape to quit or P to proceed...$'
comment\
notenoughmess db 'Pinball Fantasies requires at least 555 kbytes (568000) free base memory',13,10
db "or 520 kbytes (530000) for 'Gravis UltraSound' or 'nosound' drivers.",13,10
db 'Please look in Your manual how to free up DOS memory!',13,10,'$',0
\
notenoughmess label byte
db "You do not have enough free memory to run Pinball Fantasies.",13,10
db "You need to have at least 530K (542700 bytes) free to run ",13,10
db "the game if you are using a Gravis Ultrasound sound card or ",13,10
db "are planning to run the game with no sound at all.",13,10,13,10
db "If you want to have sound in the game, you will need at",13,10
db "least 560K (573440 bytes) free.",13,10,13,10
db "Please type CHKDSK or MEM (DOS 4 or higher) at the dos prompt",13,10
db "to display free memory.",13,10,13,10
db 'Please refer to the "troubleshooting" section in your',13,10
db "instruction manual for guidance on how to free your ",13,10
db "computers memory.",13,10,0,"$"
wordstruc struc
THELINE DB ?
CPVAL DW ?
THETEXT DW WORDLEN/2 DUP (?)
THEPAGE DB ?
CHKSUMA DB ?
THEWORD DB ?
ends
extrn ordlista:byte
THEPOST DW ?
lbredd=400
lhojd=40
loggasize=lbredd/2*lhojd
savearea1 db loggasize dup (?)
savearea2 db loggasize dup (?)
hi_score_file1 db 'table1.hi',0
hi_score_file2 db 'table2.hi',0
hi_score_file3 db 'table3.hi',0
hi_score_file4 db 'table4.hi',0
HI_SCORE_LIST LABEL BYTE
db 0,0,0, 0,5,0, 0,0,0, 0,0,0,'TSP',0 ;FEST-LANDET
db 0,0,0, 0,2,5, 0,0,0, 0,0,0,'ICE',0
db 0,0,0, 0,1,0, 0,0,0, 0,0,0,'ANY',0
db 0,0,0, 0,0,5, 0,0,0, 0,0,0,'J L',0
HI_SCORE_LIST2 LABEL BYTE
db 0,0,0, 1,0,0, 0,0,0, 0,0,0,'TSP',0 ;HASTIGHETSJŽVLARNA
db 0,0,0, 0,5,0, 0,0,0, 0,0,0,'J L',0
db 0,0,0, 0,2,5, 0,0,0, 0,0,0,'ICE',0
db 0,0,0, 0,1,0, 0,0,0, 0,0,0,'ANY',0
HI_SCORE_LIST3 LABEL BYTE
db 0,0,0, 1,0,0, 0,0,0, 0,0,0,'TSP',0 ;MILJARDVISNINGEN
db 0,0,0, 0,5,0, 0,0,0, 0,0,0,'ANY',0
db 0,0,0, 0,2,5, 0,0,0, 0,0,0,'J L',0
db 0,0,0, 0,1,0, 0,0,0, 0,0,0,'ICE',0
HI_SCORE_LIST4 LABEL BYTE
db 0,0,0, 1,0,0, 0,0,0, 0,0,0,'TSP',0 ;STENAR&BEN
db 0,0,0, 0,5,0, 0,0,0, 0,0,0,'ICE',0
db 0,0,0, 0,2,5, 0,0,0, 0,0,0,'ANY',0
db 0,0,0, 0,1,0, 0,0,0, 0,0,0,'J L',0
;HŽR!
MENU_ITEMS LABEL WORD
DW L_BALLS
DW L_ANGLE
DW L_SCROLLING
DW L_IM
DW L_RESOLUTION
DW L_MODE
DW L_SAVE
LAST_ITEM LABEL WORD
HIGH_MENU=(LAST_ITEM-MENU_ITEMS)/2
MENU_ITEMS_UPDATES LABEL WORD
DW L_BALLS_UPDATE
DW L_ANGLE_UPDATE
DW L_SCROLLING_UPDATE
DW L_IM_UPDATE
DW L_RESOLUTION_UPDATE
DW L_MODE_UPDATE
DW DUMRET
TOGGLAR_STRUCEN STRUC
S_BALLS DB ?
S_ANGLE DB ?
S_SCROLLING DB ?
S_IM DB ?
S_RESOLUTION DB ?
S_MODE DB ?
ENDS
TOGGLAREN DB SIZE TOGGLAR_STRUCEN DUP (0)
TOGGLAR_NAME DB 'PINBALL.CFG',0
TEXTEN1 DB 'PLEASE ENTER WORD ',0,50 DUP (0)
TEXTEN2 DB ' ON',0
TEXTEN3 DB 'LINE ',0,20 DUP(0)
TEXTEN4 DB ' AT PAGE ',0
TEXTEN5 DB '.',0
TEMPTEXT DB 10 DUP(0)
reserv db 100 dup(0)
rensa_input db 20 dup (' '),0
ALIGN 16
HEXTBL DB "0123456789ABCDEF"
DB 16 DUP (1)
DB " HI HACKER! PLEASE DON'T CRACK THIS PROGRAM! IT WAS MADE BY"
DB " THE DEMO GROUP TSP. WE NEED THE MONEY TO BE ABLE TO KEEP ON"
DB " CODING GAMES FOR THE PC! THIS PROGRAM ISN'T HARD TO CRACK, SO"
DB " MAKE A DEMO INSTEAD TO PROVE YOUR SKILLS... IF YOU CRACK IT"
DB " WE WILL HATE YOU 4EVER! HAVE A NICE DAY! :-) "
DB 16 DUP (2)
TEXTLISTA LABEL WORD
DW HITEXT1 ;OBS!!! Higscore vill ligga h„r
;GNU
dw -1
dw -1
DW TEXT1
DW TEXT2
dw -1
dw -1
DW TEXT3
DW TEXT4
DW -1
DW -1
DW 0
DW 0
DW 0
DW 0
comment\
betatext db 0
DB 'THIS IS A BETA VERSION',0
DB 0
DB 'DO NOT SPREAD',0
DB 0
DB 'ONLY FOR',0
DB 'PETER ENGSTRAND',0
DB 0
DB 'HAVE FUN - WE DONT',0
DB 0
DB 'PS CHANGE TABLES',0
DB 'WITH ENTER DS',0
\
START_KEK LABEL BYTE ;CHECKSUMMA!!!!! ;-(