-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathEx.asm
1792 lines (1326 loc) · 30.5 KB
/
Ex.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
;; Hany-> command;
;; Mena -> second;
;EXTRN mainGame:_AX, _BX, _CX, _DX, _SI, _DI, _SP, _BP,_AL, _BL, _CL, _DL, _AH, _BH, _CH, _DH
;EXTRN mainGame:command
;EXTRN mainGame:_00,_01,_02,_03,_04,_05,_06,_07,_08,_09,_A,_B,_C,_D,_E,_F
;PUBLIC result
;include valid_in.inc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Hany
split_operands MACRO source des1 des2 ; to split the two operand (des1->first oper && des2->second oper)
mov SI,offset source
mov DI,offset des1
mov al,','
MOV AH,'$'
moving1:
MOVSB
CMP AH,[SI]
JE FIN
cmp al,[SI]
jnz moving1
inc SI ;; to skip (,)
mov DI,offset des2
mov al,'$'
moving2:
MOVSB
cmp al,[SI]
jnz moving2
FIN:
dec di ; to remove enter
mov [DI],AH
ENDM split_operands
;; HASHING operand
HASHING_op MACRO STR HASH
local moving111
mov SI,offset STR
mov DI, offset HASH
mov al,'$' ;; to check END
MOV [DI],0H
MOV BX,[DI]
MOV CL,[SI]
MOV CH,00H ;; first time
ADD BX,CX
MOV [DI],BX
MOV BX,[DI]
MOV CL,[SI] ;; second time
MOV CH,00H
ADD BX,CX
MOV [DI],BX
moving111:
MOV BX,[DI]
MOV CL,[SI]
MOV CH,00H
ADD BX,CX
ADD BX,CX
ADD BX,CX
MOV [DI],BX
INC SI
cmp al,[SI]
jnz moving111
ENDM HASHING_op
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.MODEL SMALL
.STACK 64
.DATA
_AX dw 1234h
_BX dw 50H
_CX dw 2H
_DX dw 1000H
_SI dw ?
_DI dw ?
_SP dw ?
_BP dw ?
_00 db 56h
_01 db 78H
_02 db ?
_03 db ?
_04 db ?
_05 db ?
_06 db ?
_07 db ?
_08 db ?
_09 db ?
_A db ?
_B db ?
_C db ?
_D db ?
_E db ?
_F db ?
command_splited db 5 dup('$')
Operand1 db 5 dup('$')
Operand2 db 5 dup('$')
Two_Operands_Together_splited db 10 dup('$')
Operand2_Value dw ?
Operand1_Value dw ?
sizeIndex db 0
;MOV [00],AX DONE
;MOV [00],Al DONE
HASH DW ? ;MOV AX,[00] DONE
HASH_Operand2 DW ? ;MOV Al,[00] DONE
HASH_Operand1 DW ? ; ADD AX,[00] DONE
;ADC DX,BX DONE
command DB 'MOV [00],AXe','$' ;SUB DX,BX DONE ;SBB DX,BX DONE
;................................................
.code ;DIV CX
DisplayString MACRO STR ;DIV CL
mov ah,9h ;MUL CX
mov dx,offset STR ;MUL CL
int 21h ;XOR AX,[00]
ENDM DisplayString ;AND AX,[00]
;OR AX,[00]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;NOP
;SHR
; Hany ;INC
;; HASHING ;DEC
HASHING MACRO STR HASH ;CLC
local moving111 ;SHL
mov SI,offset STR ;SAR
mov DI, offset HASH ;ROR
mov al,'$' ;; to check END ;RCL
MOV [DI],0H ;RCR
;ROL
MOV BX,[DI]
MOV CL,[SI]
MOV CH,00H
ADD BX,CX
MOV [DI],BX
moving111:
MOV BX,[DI]
MOV CL,[SI]
MOV CH,00H
ADD BX,CX
ADD BX,CX
ADD BX,CX
MOV [DI],BX
INC SI
cmp al,[SI]
jnz moving111
ENDM HASHING
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MAIN PROC far
MOV AX,@DATA
MOV DS,AX
mov es,ax
CALL split_command
split_operands Two_Operands_Together_splited Operand1 Operand2
HASHING command_splited HASH
HASHING_op Operand1 HASH_Operand1
HASHING_op Operand2 HASH_Operand2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
check_Operand HASH_Operand1 Operand1_Value Operand1 sizeIndex ;; 0 for byte, 1 for word
check_Operand HASH_Operand2 Operand2_Value Operand2 sizeIndex
CALL check_command
HLT
MAIN ENDP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Hany
;; split operand and store it in split_command
;; split operands and store it in Two_Operands_Together_splited
split_command PROC
mov SI, offset command
mov DI, offset command_splited
mov al,' ' ;; to check space
moving11:
MOVSB
cmp al,[SI]
jnz moving11
;; Mena
mov DI, offset Two_Operands_Together_splited
mov al,'$' ;; to check end
inc SI ;; to skip space
moving22:
MOVSB
cmp al,[SI]
jnz moving22
ret
split_command ENDP
check_command PROC
MOV SI,offset HASH
MOV DI,offset command_splited
;; ADD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
CMP [SI],29CH
JNZ CHECK1
MOV AX,Operand1_Value
MOV BX,Operand2_Value
ADD AX,BX
put_Operand HASH_Operand1 AX sizeIndex
CHECK1:
;; ADC
CMP [SI],299H
JNZ CHECK2
;; CODE
MOV AX,Operand1_Value
MOV BX,Operand2_Value
ADC AX,BX
put_Operand HASH_Operand1 AX sizeIndex
CHECK2:
;; SUB
CMP [SI],311H
JNZ CHECK3
;; CODE
DisplayString command_splited
MOV AX,Operand1_Value
MOV BX,Operand2_Value
SUB AX,BX
put_Operand HASH_Operand1 AX sizeIndex
CHECK3:
;; SBB
CMP [SI],2D8H
JNZ CHECK4
;; CODE
MOV AX,Operand1_Value
MOV BX,Operand2_Value
SBB AX,BX
put_Operand HASH_Operand1 AX sizeIndex
CHECK4:
;; DIV
CMP [SI],2EDH
JNZ CHECK5
;; CODE
MOV BX,Operand1_Value
MOV CL,sizeIndex
CMP CL,1
JNE BYTE
MOV AX,_AX ;;;;;; div error div overflow
DIV BX
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MOV HASH_Operand1,24DH
put_Operand HASH_Operand1 AX sizeIndex ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MOV HASH_Operand1,25CH
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
put_Operand HASH_Operand1 DX sizeIndex
JMP CONT
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
BYTE:
MOV AX,_AX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
DIV BL
MOV HASH_Operand1,24DH
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
put_Operand HASH_Operand1 AX sizeIndex
CONT:
CHECK5:
;; MUL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
CMP [SI],317H
JNZ CHECK6
;; CODE
MOV BX,Operand1_Value
MOV CL,sizeIndex
CMP CL,1
JNE BYTE1
MOV AX,_AX
MUL BX
MOV HASH_Operand1,24DH
put_Operand HASH_Operand1 AX sizeIndex
MOV HASH_Operand1,25CH
put_Operand HASH_Operand1 DX sizeIndex
JMP CONT
BYTE1:
MOV AX,_AX
MUL BL
MOV HASH_Operand1,24DH
put_Operand HASH_Operand1 AX sizeIndex
CONT1:
CHECK6:
;; MOV
CMP [SI],323H
JNZ CHECK7
;; CODE
put_Operand HASH_Operand1 Operand2_Value Operand1 sizeIndex
CHECK7:
;; XOR
CMP [SI],343H
JNZ CHECK8
;; CODE
MOV AX,Operand1_Value
MOV BX,Operand2_Value
XOR AX,BX
put_Operand HASH_Operand1 AX sizeIndex
CHECK8:
;; AND
CMP [SI],2BAH
JNZ CHECK9
;; CODE
MOV AX,Operand1_Value
MOV BX,Operand2_Value
AND AX,BX
put_Operand HASH_Operand1 AX sizeIndex
CHECK9:
;; OR
CMP [SI],232H
JNZ CHECK10
;; CODE
MOV AX,Operand1_Value
MOV BX,Operand2_Value
OR AX,BX
put_Operand HASH_Operand1 AX sizeIndex
CHECK10:
;; NOP
CMP [SI],315H
JNZ CHECK11
;; CODE
CHECK11:
;; SHR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CL CX CH
CMP [SI],31AH ; xxxx xxxx xxxx xxxx
JNZ CHECK15
;; CODE
MOV AX,Operand1_Value
MOV CX,Operand2_Value
SHR AX,CL
put_Operand HASH_Operand1 AX sizeIndex
CHECK15:
;; INC
CMP [SI],2D7H
JNZ CHECK12
;; CODE
MOV AX,Operand1_Value
INC AX
put_Operand HASH_Operand1 AX sizeIndex
CHECK12:
;; DEC
CMP [SI],2A8H
JNZ CHECK13
;; CODE
MOV AX,Operand1_Value
DEC AX
put_Operand HASH_Operand1 AX sizeIndex
CHECK13:
;; CLC
CMP [SI],2B9H
JNZ CHECK14
;; CODE
CLC
CHECK14:
;; SHL
CMP [SI],308H
JNZ CHECK16
;; CODE
MOV AX,Operand1_Value
MOV CX,Operand2_Value
SHL AX,CL
put_Operand HASH_Operand1 AX sizeIndex
CHECK16:
;; SAR
CMP [SI],305H
JNZ CHECK17
;; CODE
MOV AX,Operand1_Value
MOV CX,Operand2_Value
SAR AX,CL
put_Operand HASH_Operand1 AX sizeIndex
CHECK17:
;; ROR
CMP [SI],32BH
JNZ CHECK18
;; CODE
MOV AX,Operand1_Value
MOV CX,Operand2_Value
ROR AX,CL
put_Operand HASH_Operand1 AX sizeIndex
CHECK18:
;; RCL
CMP [SI],2F5H
JNZ CHECK19
;; CODE
MOV AX,Operand1_Value
MOV CX,Operand2_Value
RCL AX,CL
put_Operand HASH_Operand1 AX sizeIndex
CHECK19:
;; RCR
CMP [SI],307H
JNZ CHECK20
;; CODE
MOV AX,Operand1_Value
MOV CX,Operand2_Value
RCR AX,CL
put_Operand HASH_Operand1 AX sizeIndex
CHECK20:
;; ROL
CMP [SI],319H
JNZ CHECK21
;; CODE
MOV AX,Operand1_Value
MOV CX,Operand2_Value
ROL AX,CL
put_Operand HASH_Operand1 AX sizeIndex
CHECK21:
RET
check_command ENDP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Mena
check_Operand MACRO HASH_Operand Operand_Value Operand sizeIndex
LOCAL CHECKBX,CHECKCX,CHECKDX, CHECKSI,CHECKDI ,CHECKSP ,CHECKBP,CHECKAL ,CHECKBL,CHECKCL,,CHECKDL,CHECKAH,CHECKBH,CHECKCH,CHECKDH,CHECK00,CHECK01,CHECK02,CHECK03,CHECK04,CHECK05,CHECK06,CHECK07,CHECK08,CHECK09,CHECKA,CHECKB,CHECKC,CHECKD,CHECKE,CHECKF,CHECKmlSI,CHECKmlBI,CHECKmlBX,movml00,movml1,movml2,movml3,movml4,movml5,movml6,movml7,movml9,movmlA,movml8,movmlB,movmlC,movmlD,movmlE,movmlF,CHECKdata,CHECKmlDI,end
MOV SI,offset HASH_Operand
;; AX
CMP [SI],24dH
JNZ CHECKBX
mov ax,_AX;; CODE
mov Operand_Value,ax
mov sizeIndex,1h
jmp end
CHECKBX:
;; BX
CMP [SI],252H
JNZ CHECKCX
mov ax,_BX;; CODE
mov Operand_Value,ax
mov sizeIndex,1h
jmp end
CHECKCX:
;; CX
CMP [SI],257H
JNZ CHECKDX
mov ax,_CX;; CODE
mov Operand_Value,ax
mov sizeIndex,1h
jmp end
CHECKDX:
;; DX
CMP [SI],25cH
JNZ CHECKSI
mov ax,_DX;; CODE
mov Operand_Value,ax
mov sizeIndex,1h
jmp end
CHECKSI:
;; SI
CMP [SI],27aH
JNZ CHECKDI
mov ax,_SI;; CODE
mov Operand_Value,ax
mov sizeIndex,1h
jmp end
CHECKDI:
;; DI
CMP [SI],22fH
JNZ CHECKSP
mov ax,_DI;; CODE
mov Operand_Value,ax
mov sizeIndex,1h
jmp end
CHECKSP:
;; SP
CMP [SI],28fH
JNZ CHECKBP
mov ax,_SP;; CODE
mov Operand_Value,ax
mov sizeIndex,1h
jmp end
CHECKBP:
;; BP
CMP [SI],23aH
JNZ CHECKAL
mov ax,_BP;; CODE
mov Operand_Value,ax
mov sizeIndex,1h
jmp end
CHECKAL:
;; AL
CMP [SI],229H
JNZ CHECKBL
mov ax,_AX;; CODE
mov Ah,00H
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKBL:
;; BL
CMP [SI],22eH
JNZ CHECKCL
mov ax,_BX;; CODE
MOV AH,00H
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKCL:
;; CL
CMP [SI],233H
JNZ CHECKDL
mov ax,_CX;; CODE
MOV AH,00H
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKDL:
;; DL
CMP [SI],238H
JNZ CHECKAH
mov ax,_DX;; CODE
MOV AH,00H
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKAH:
;; AH
CMP [SI],21dH
JNZ CHECKBH
mov ax,_AX;; CODE
MOV AL,AH
MOV AH,00H
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKBH:
;; BH
CMP [SI],222H
JNZ CHECKCH
mov ax,_BX;; CODE
MOV AL,AH
MOV AH,00H
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKCH:
;; CH
CMP [SI],227H
JNZ CHECKDH
mov ax,_CX;; CODE
MOV AL,AH
MOV AH,00H
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKDH:
;; DH
CMP [SI],22cH
JNZ CHECK00
mov ax,_DX;; CODE
MOV AL,AH
MOV AH,00H
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECK00:
;; 00 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;TO CHECK
CMP [SI],3feH
JNZ CHECK01
movml00:
mov aL,_00
MOV AH,_01
mov Operand_Value,ax
jmp end
CHECK01:
; ;; 01
CMP [SI],401H
JNZ CHECK02
movml1:
mov aL,_01
MOV AH,_02
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECK02:
; ;; 02
CMP [SI],404H
JNZ CHECK03
movml2:
mov aL,_02
MOV AH,_03
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECK03:
; ;; 03
CMP [SI],407H
JNZ CHECK04
movml3:
mov aL,_03
MOV AH,_04
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECK04:
; ;; 04
CMP [SI],40aH
JNZ CHECK05
movml4:
mov aL,_04
MOV AH,_05
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECK05:
; ;; 05
CMP [SI],40dH
JNZ CHECK06
movml5:
mov aL,_05
MOV AH,_06
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECK06:
; ;; 06
CMP [SI],410H
JNZ CHECK07
movml6:
mov aL,_06
MOV AH,_07
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECK07:
; ;; 07
CMP [SI],413H
JNZ CHECK08
movml7:
mov aL,_07
MOV AH,_08
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECK08:
; ;; 08
CMP [SI],416H
JNZ CHECK09
movml8:
mov aL,_08
MOV AH,_09
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECK09:
; ;; 09
CMP [SI],419H
JNZ CHECKA
movml9:
mov aL,_09
MOV AH,_A
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKA:
; ;; A
CMP [SI],3a1H
JNZ CHECKB
movmlA:
mov aL,_A
MOV AH,_B
mov Operand_Value,aX
;mov sizeIndex,0h
jmp end
CHECKB:
; ;; B
CMP [SI],3a4H
JNZ CHECKC
movmlB:
mov aL,_B
MOV AH,_C
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKC:
; ;; C
CMP [SI],3a7H
JNZ CHECKD
movmlC:
mov aL,_C
MOV AH,_D
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKD:
; ;; D
CMP [SI],3aaH
JNZ CHECKE
movmlD:
mov aL,_D
MOV AH,_E
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKE:
; ;; E
CMP [SI],3adH
JNZ CHECKF
movmlE:
mov aL,_E
MOV AH,_F
mov Operand_Value,ax
;mov sizeIndex,0h
jmp end
CHECKF: