-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpasm.html
1283 lines (1283 loc) · 36.3 KB
/
pasm.html
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
Dux Documentation for pasm
<pre class='pasm'>
* @method get retrieves the given string as a variable
*
public static function get(string $var = "ah")
</pre>
<pre class='pasm'>
* @method var_p prints the given string as a variable
*
public static function var_p(string $var = "ah")
</pre>
<pre class='pasm'>
* @method char_adjust_addition changes $rdx to 8 bits
*
public static function char_adjust_addition()
</pre>
<pre class='pasm'>
* @method carry_add sets the $cl flag for carrying over on addition commands
*
public static function carry_add()
</pre>
<pre class='pasm'>
* @method add uses addition to form $rdx from $ecx and $ah
*
public static function add()
</pre>
<pre class='pasm'>
* @method and changes the $cl flag to the $ecx & $ah answer
*
public static function and()
</pre>
<pre class='pasm'>
* @method chmod uses $string as the first parameter
* and $ah as the second param for PHP's native chmod()
*
public static function chmod()
</pre>
<pre class='pasm'>
* @method bit_scan_fwd if $tp is null at current() it breaks up $qword into
* portions according to '1's from a binary string
* derived from the $qword and resets the $tp variable to the beginning.
*
* otherwise it will goto the next $tp in the array
*
public static function bit_scan_fwd()
</pre>
<pre class='pasm'>
* @method bit_scan_rvr if $tp is null at current() it breaks up $qword into
* portions according to '1's from a binary string
* derived from the $qword and resets the $tp variable to the end.
*
* otherwise it will goto the previous $tp in the array
*
public static function bit_scan_rvr() // reverse of above
</pre>
<pre class='pasm'>
* @method byte_rvr will reverse the given $ecx in binary
* then set it as $rdx
*
public static function byte_rvr() // reverse byte
</pre>
<pre class='pasm'>
* @method bit_test sets $bitcmp to the $ah'th bit
* just on or off
*
public static function bit_test() // bit is filled in pointer
</pre>
<pre class='pasm'>
* @method bit_test_comp search through arbitrary $ecx for the $ahth bit
* and set $CF to it's returned value
*
* if given anything returned as true for a parameter, it will also set the $bitcmp flag
*
public static function bit_test_comp(bool $bitc = false) // look through byte and see the $ah'th bit
</pre>
<pre class='pasm'>
* bit_test_comp search through arbitrary $ecx for the $ahth bit
* and set $CF to it's returned value reset $ecx to 0
*
public static function bit_test_reset() // Clear bit (ah) test flag
</pre>
<pre class='pasm'>
* @method bit_test_comp search through arbitrary $ecx for the $ahth bit
* and set $CF to it's returned value and ecx[$ah] to 1
*
public static function bit_test_set() // Test bit
</pre>
<pre class='pasm'>
* @method call is used to call a function from the stack
*
public static function call() // call top of stack function
</pre>
<pre class='pasm'>
* @method cmp_mov_a compares the top of the stack '>' to $ah for true
* changes $ecx to $ah if $ah is
*
public static function cmp_mov_a() // check ah against top of stack
</pre>
<pre class='pasm'>
* @method cmp_mov_ae compares the top of the stack '>=' to $ah for true
* changes $ecx to $ah if $ah is
*
public static function cmp_mov_ae() // same (documenting will continue below)
</pre>
<pre class='pasm'>
* @method cmp_mov_b compares the top of the stack '<' to $ah for true
* changes $ecx to $ah if $ah is
*
public static function cmp_mov_b()
</pre>
<pre class='pasm'>
* @method cmp_mov_be compares the top of the stack '<=' to $ah for true
* changes $ecx to $ah if $ah is
*
public static function cmp_mov_be()
</pre>
<pre class='pasm'>
* @method cmp_mov_e compares the top of the stack '==' to $ah for true
* changes $ecx to $ah if $ah is
*
public static function cmp_mov_e()
</pre>
<pre class='pasm'>
* @method cmp_mov_nz compares the top of the stack '==' to $ah for true
* and $CF needs to be equal to that annswer
* changes $ecx to $ah if it is
*
public static function cmp_mov_nz()
</pre>
<pre class='pasm'>
* @method cmp_mov_pe compares the top of the stack '<' to $ah for true
* changes $ecx to $ah if $ah is higher
*
public static function cmp_mov_pe()
</pre>
<pre class='pasm'>
* @method cmp_mov_po compares 1 '==' to $CF for true
* changes $ecx to $ah if $ah is
*
public static function cmp_mov_po()
</pre>
<pre class='pasm'>
* @method cmp_mov_s compares 0 '<' to $ah for true
* changes $ecx to $ah if $ah is
*
public static function cmp_mov_s()
</pre>
<pre class='pasm'>
* @method cmp_mov_a compares 0 '>' to $ah for true
* changes $ecx to $ah if $ah is
*
public static function cmp_mov_z()
</pre>
<pre class='pasm'>
* @method mov copies $ah to $ecx
*
public static function mov() // move ah to ecx. Same as mov_ah()
</pre>
<pre class='pasm'>
* @method movabs pushes the current $ecx to $stack['movabs']
* then moves the ST0 pointer to the end of the stack
*
public static function movabs() // copy $ecx to stack
</pre>
<pre class='pasm'>
* @method clear_carry sets CF to 0
*
public static function clear_carry() // clear $CF
</pre>
<pre class='pasm'>
* @method clear_registers clears all native PASM registers and $CF bit to 0
*
public static function clear_registers() // make all registers 0
</pre>
<pre class='pasm'>
* @method comp_carry negates the current status of $CF
*
public static function comp_carry() // negate $CF
</pre>
<pre class='pasm'>
* @method cmp_e compares '==' $ecx to $ah and sets the $cl field accordingly
*
public static function cmp_e() // bool of equality comparison (documentation continues below)
</pre>
<pre class='pasm'>
* @method cmp_same compares '==' $ecx to $ah and sets the $cl field accordingly
*
public static function cmp_same()
</pre>
<pre class='pasm'>
* @method cmp_xchg compares '==' $ecx to $ah and sets the $ZF field accordingly
* as well, it switches $rdx and $ah
*
public static function cmp_xchg()
</pre>
<pre class='pasm'>
* @method xchg switches $rdx and $ah
*
public static function xchg(&$x, &$y)
</pre>
<pre class='pasm'>
* @method decr decrements any variable via string (ie 'rdx')
* one integer value
*
public static function decr(string $var = "ecx") // decrement ecx
</pre>
<pre class='pasm'>
* @method divide $ecx by $ah
*
public static function divide() // $ecx/$ah
</pre>
<pre class='pasm'>
* @method absf sets $rdx to the absolute value of ah
*
public static function absf() // absolute value of $ah
</pre>
<pre class='pasm'>
* @method addf uses addition of $ecx and $ah to set $rdx
*
public static function addf() // add $ecx and $ah
</pre>
<pre class='pasm'>
* @method addc uses addition of $ecx and $ah and current $rdx to set $rdx
*
public static function addc() // add $ecx and $ah
</pre>
<pre class='pasm'>
* @method round uses the PHP native function round() with $ST0
* and the number in $RC for the number of decimal places
* to set the $stack
*
public static function round() // round top stack to RC decimal
</pre>
<pre class='pasm'>
* @method round_pop uses the PHP native function round() with $ST0
* and the number in $RC for the number of decimal places
* to set the $ah register and pops the stack once
* it then sets $ST0 to the last element in the $stack
*
public static function round_pop() // same but pop
</pre>
<pre class='pasm'>
* @method neg inverts a positive number to a positive number
* or the reverse action, depending on the value. $ah
* is multiplied by -1 to set $rdx to the answer
*
public static function neg() // negate $ah
</pre>
<pre class='pasm'>
* @method stack_cmov_b compares $ST0 '>' to $ah
* if true, it makes $rdx the value in $ah
*
public static function stack_cmov_b() // move on comparison (begins again below)
</pre>
<pre class='pasm'>
* @method stack_cmov_be compares $ST0 '>=' to $ah
* if true, it makes $rdx the value in $ah
*
public static function stack_cmov_be()
</pre>
<pre class='pasm'>
* @method stack_cmov_e compares $ST0 '==' to $ah
* if true, it makes $rdx the value in $ah
*
public static function stack_cmov_e()
</pre>
<pre class='pasm'>
* @method stack_cmov_nb compares $ST0 '<' to $ah
* if true, it makes $rdx the value in $ah
*
public static function stack_cmov_nb()
</pre>
<pre class='pasm'>
* @method stack_cmov_nbe compares $ST0 '<=' to $ah
* if true, it makes $rdx the value in $ah
*
public static function stack_cmov_nbe()
</pre>
<pre class='pasm'>
* @method stack_cmov_b compares $ST0 '!=' to $ah
* if true, it makes $rdx the value in $ah
*
public static function stack_cmov_ne()
</pre>
<pre class='pasm'>
* @method fcomp subtracts the $ST0 stack pointer
* from $ah and pops its last value off
*
public static function fcomp() // subtract top of stack from $ah and pop
</pre>
<pre class='pasm'>
* @method cosine sets the $ST0 pointer to the current $ST0
* wrapped in the PHP native mathematical function, cosine (cos)
*
public static function cosine() // change top of stack to cosine of top of stack
</pre>
<pre class='pasm'>
* @method stack_pnt_rev goes through the stack backward,
* in reverse, and sets the $sp variable to its position
*
public static function stack_pnt_rev() // go traverse the stack backward
</pre>
<pre class='pasm'>
* @method fdiv divides $ecx by $ST0, the stack's last entry
* setting the value of $rdx
*
public static function fdiv() // divide ST0 into $ecx
</pre>
<pre class='pasm'>
* @method fdiv_pop divides $ST0 by $ecx and sets the last element to $ST0 again
*
public static function fdiv_pop() // opposite as above and pop
</pre>
<pre class='pasm'>
* @method fdiv_rev divides $ST0 by $ecx and sets the value at $rdx
*
public static function fdiv_rev() // opposite of fdiv
</pre>
<pre class='pasm'>
* @method fdiv_rev divides $ecx by $ST0 and sets the value at $rdx
*
public static function fdiv_rev_pop() // same as above with po
</pre>
<pre class='pasm'>
* @method add_stack uses addition to set $rdx
* with the value of $ecx + $ST0
*
public static function add_stack() // add top of stack to ecx
</pre>
<pre class='pasm'>
* @method ficomp uses comparison of $ST0 '==' to $ah
* and sets the bit $cl with it
* Then it pops the stack and reissues the last
* element to $ST0
*
public static function ficomp() // compare and pop
</pre>
<pre class='pasm'>
* @method resta recover contents of the stack from the filename given as a parameter
*
public static function resta(string $filename)
</pre>
<pre class='pasm'>
* @method stack_load uses $key so it's indexable by string coefficient
* 'fc' so you can have the count of the reference rather than
* name it every time
*
public static function stack_load() // stack with count on stack
</pre>
<pre class='pasm'>
* @method stack_mrg merging native $array and $stack
*
public static function stack_mrg() // stack with count on stack
</pre>
<pre class='pasm'>
* @method fmul multiplies $ecx by $ah giving $rdx it's value
*
public static function fmul() // multiplies ecx and ah
</pre>
<pre class='pasm'>
* @method stack_pnt_fwd moves the $sp (stack pointer) forward, one iteration
*
public static function stack_pnt_fwd() // moves stack pointer forward
</pre>
<pre class='pasm'>
* @method store_int subtracts by $ST0 - 2^$ah and sets $rdx to the value
*
public static function sintexp() // subtracts $ST0 - 2-to-the-$ah and puts answer in $rdx
</pre>
<pre class='pasm'>
* @method int_pop subtracts by $ST0 - 2^$ah and sets $rdx to the value
* and pops the last value, then resets the $ST0 pointer to the last entry
*
public static function intpop() // same as above, but with pop
</pre>
<pre class='pasm'>
* @method subea subtracts $ah from $ech and places the
* value in $rdx
*
public static function subea() // like subtract but backwards
</pre>
<pre class='pasm'>
* @method subae subtracts $ecx from $ah
* and puts the value in $rdx
*
public static function subae() // $ah - $ecx
</pre>
<pre class='pasm'>
* @method fld1 pushes ecx+1 to the stack
*
public static function fld1() // pushes ecx+1 to stack
</pre>
<pre class='pasm'>
* @method load_logl2 pushs log(log(2)) to the stack
*
public static function load_logl2() //
</pre>
<pre class='pasm'>
* @method load_logl2t pushes log(2,10)
*
public static function load_logl2t()
</pre>
<pre class='pasm'>
* @method load_loglg2 pushes log(2, log($ah)) to the stack
*
public static function load_loglg2()
</pre>
<pre class='pasm'>
* @method load_ln2 pushes log(e, 2) to the stack
*
public static function load_ln2()
</pre>
<pre class='pasm'>
* @method load_pi pushes 3.14159... to the stack
*
public static function load_pi()
</pre>
<pre class='pasm'>
* @method float_test recreates $ah as a decimal in $rdx
*
public static function float_test()
</pre>
<pre class='pasm'>
* @method fmul_pop multiplies $ah and $ecx as $rdx
* pops the stack and puts the top as $ST0
*
public static function fmul_pop() // ah * ecx and pop
</pre>
<pre class='pasm'>
* @method clex clears the $ZF bit
*
public static function clex() // clear exception bit
</pre>
<pre class='pasm'>
* @method clflags clears the $cl flags
*
public static function clflags() // clear cl
</pre>
<pre class='pasm'>
* @method fnop counts as a function, but does absolutely nothing
* its there because people want hackers in their stuff i guess
*
public static function fnop() // counts as function, does nothing but takes up space (like in assembly)
</pre>
<pre class='pasm'>
* @method fpatan puts the value of arctan($ah) in the $cl flag
*
public static function fpatan() // gets arctan of $ah
</pre>
<pre class='pasm'>
* @method fptan puts the value of tan($ah) in the $cl flag
*
public static function fptan() // gets tangent of ah
</pre>
<pre class='pasm'>
* @method fprem divide the top of the stack by the next down
*
public static function fprem() // look to documentation (Oracle Systems Manual)
</pre>
<pre class='pasm'>
* @method frndint rounds the top of the stack, with the remaining $RC decimals
* and puts it into $rdx
*
public static function frndint() // round top of stack into $rdx
</pre>
<pre class='pasm'>
* @method car $ah to $rdx
*
public static function car() // copy $ah to $rdx
</pre>
<pre class='pasm'>
* @method fsin stores the sin of $ST0 in the final element of $stack
* wherein it was retrieved from.
*
public static function fsin() // change top of stack to sin of top of stack
</pre>
<pre class='pasm'>
* @method fsincos pushes cosine of $ST0 to stack and applies sine to it
*
public static function fsincos() // push cos of $ST0 to stack and fill $ST0 with sin of itself
</pre>
<pre class='pasm'>
* @method fscale rounds the top 2 elements of the $stack array
* in separate variables
*
public static function fscale() // round top 2 stack elements and push to rdx ans powers of 2
</pre>
<pre class='pasm'>
* @method fsqrt push top of stack onto stack as the square root of it
*
public static function fsqrt() // push to stack top value's sqrt
</pre>
<pre class='pasm'>
* @method fst copies ST0 to a position at $ecx from the back
* if it is a negative number, and forward if positive
*
public static function fst() // copy ST0 to another position ($ecx)
</pre>
<pre class='pasm'>
* @method fstcw copies $ah to $rdx
*
public static function fstcw() // copy $ah to $rdx
</pre>
<pre class='pasm'>
* @method fstp fst but pops from stack
*
public static function fstp() // same as fst() but pops
</pre>
<pre class='pasm'>
* @method subtract_pop subtract $ST0 from $ah and place value in $rdx
* then pop the $stack
*
public static function subtract_pop() // like it says ($ah - $ST0)
</pre>
<pre class='pasm'>
* @method subtract_rev_pop subtract $ah from $ST0 then pop the $stack
*
public static function subtract_rev_pop() // (same only reverse)
</pre>
<pre class='pasm'>
* @method ftst see if float is possible type
*
public static function ftst() // check that math works
</pre>
<pre class='pasm'>
* @method fucom copies $ecx = $sp and $rdx = $ST0
*
public static function fucom() // ecx == $sp and $rdx = $ST0
</pre>
<pre class='pasm'>
* @method fucomp copies $sp to $ecx and $ST0 to $rdx and pop
*
public static function fucomp() // above ith pop
</pre>
<pre class='pasm'>
* @method fucompp copies $sp to $ecx and $ST0 to $rdx and pops twice
*
public static function fucompp() // above with another pop
</pre>
<pre class='pasm'>
* @method fxam retrieves complex side of number
*
public static function fxam() // get decimal value, without integer
</pre>
<pre class='pasm'>
* @method fxch exchange values from one stack place to another (the top)
*
public static function fxch() //
</pre>
<pre class='pasm'>
* @method fxtract get highest significand and exponent of number
*
public static function fxtract() // get highest significand and exponent of number
</pre>
<pre class='pasm'>
* @method fyl2x multiplies $ecxby log($ah,2) to $rdx
*
public static function fyl2x()
</pre>
<pre class='pasm'>
* @method fyl2xp1 multiplies $ecxby log($ah,2 + 1) to $rdx
*
public static function fyl2xp1()
</pre>
<pre class='pasm'>
* @method hlt sleep function
*
public static function hlt(string $async_filename, string $signal = null)
</pre>
<pre class='pasm'>
* @method cdiv divide $ah / $ecx
*
public static function cdiv() // divide $ah / $ecx
</pre>
<pre class='pasm'>
* @method fldiv divide $ah / $ecx
*
public static function fldiv() // divide $ah / $ecx
</pre>
<pre class='pasm'>
* @method flmul multiply $ah * $ecx
*
public static function flmul() // $ah * $ecx
</pre>
<pre class='pasm'>
* @method cmul multiply $ah * $ecx
*
public static function cmul() // $ah * $ecx
</pre>
<pre class='pasm'>
* @method in $string is server, collects in $buffer
*
public static function in() //
</pre>
<pre class='pasm'>
* @method inc increment $ecx
*
public static function inc() // increment $ecx
</pre>
<pre class='pasm'>
* @method in_b $string is server, collects in $buffer (byte per read)
*
public static function in_b() // read 1 byte at a time
</pre>
<pre class='pasm'>
* @method in_d $string is server, collects in $buffer (dword per read)
*
public static function in_d() // read 1 dword at a time
</pre>
<pre class='pasm'>
* @method in_w $string is server, collects in $buffer (word per read)
*
public static function in_w() // read word at a time
</pre>
<pre class='pasm'>
* @method in_q $string is server, collects in $buffer (qword per read)
*
public static function in_q() // read quad word at a time
</pre>
<pre class='pasm'>
* @method interrupt pushes $ecx into $file->signal for interrupts and async calls
*
public static function interrupt($async_filename) // push $ecx into $file->signal for interrupts and async calls
</pre>
<pre class='pasm'>
* @method write writes to file $string from $buffer
*
public static function write() // write to file $string from $buffer
</pre>
<pre class='pasm'>
* @method read writes to file $string from $buffer
*
public static function read() // read from file PASM::$string
</pre>
<pre class='pasm'>
* @method mbuf move (not copy) $buffer to stack
*
public static function mbuf() // (really) move $buffer to stack
</pre>
<pre class='pasm'>
* @method ja jump while $ah > $ecx
*
public static function ja() // from here down to next letter, is jmp commands (obvious to anyone)
</pre>
<pre class='pasm'>
* @method jae jump while $ah >= $ecx
*
public static function jae()
</pre>
<pre class='pasm'>
* @method jb jump while $ah < $ecx
*
public static function jb()
</pre>
<pre class='pasm'>
* @method jbe jump while $ah <= $ecx
*
public static function jbe()
</pre>
<pre class='pasm'>
* @method jc jump while 1 == $ecx
*
public static function jc()
</pre>
<pre class='pasm'>
* @method jcxz jump while $ah == $ecx
*
public static function jcxz()
</pre>
<pre class='pasm'>
* @method je jump while $ah == $ecx
*
public static function je()
</pre>
<pre class='pasm'>
* @method jg jump while $ah > $ecx
*
public static function jg()
</pre>
<pre class='pasm'>
* @method jge jump while $ah >= $ecx
*
public static function jge()
</pre>
<pre class='pasm'>
* @method ja jump while $ah < $ecx
*
public static function jl()
</pre>
<pre class='pasm'>
* @method ja jump while $ah < $ecx
*
public static function jle()
</pre>
<pre class='pasm'>
* @method ja jump while $lop < count($chain)
*
public static function jmp()
</pre>
<pre class='pasm'>
* @method cmpab compare "ah" to "ecx"
* or whatever you want to put in as params
*
public static function cmpab(string $a, string $b)
</pre>
<pre class='pasm'>
* @method jcmp jump if $bitcmp == true
*
public static function jcmp()
</pre>
<pre class='pasm'>
* @method jnae jump while $ah < $ecx
*
public static function jnae()
</pre>
<pre class='pasm'>
* @method jnb jump while $ah >= $ecx
*
public static function jnb()
</pre>
<pre class='pasm'>
* @method jnbe jump while $ah > $ecx
*
public static function jnbe()
</pre>
<pre class='pasm'>
* @method jnc jump while 0 == $ecx
*
public static function jnc()
</pre>
<pre class='pasm'>
* @method jne jump while $ah != $ecx
*
public static function jne()
</pre>
<pre class='pasm'>
* @method jng jump while $ah < $ecx
*
public static function jng()
</pre>
<pre class='pasm'>
* @method jnl jump while $ah < $ecx
*
public static function jnl()
</pre>
<pre class='pasm'>
* @method jno jump while 0 == $ecx
*
public static function jno()
</pre>
<pre class='pasm'>
* @method jns jump while 0 <= $ecx
*
public static function jns()
</pre>
<pre class='pasm'>
* @method jnz jump while 0 != $ecx
*
public static function jnz()
</pre>
<pre class='pasm'>
* @method jgz jump while 0 < $ecx
*
public static function jgz()
</pre>
<pre class='pasm'>
* @method jlz jump while 0 > $ecx
*
public static function jlz()
</pre>
<pre class='pasm'>
* @method jzge jump while 0 <= $ecx
*
public static function jzge()
</pre>
<pre class='pasm'>
* @method jzle jump while 0 >= $ecx
*
public static function jzle()
</pre>
<pre class='pasm'>
* @method jo jump while 1 == $ecx
*
public static function jo()
</pre>
<pre class='pasm'>
* @method jpe jump while $ecx %2 == 0
*
public static function jpe()
</pre>
<pre class='pasm'>
* @method jpo jump while $ecx %2 == 1
*
public static function jpo()
</pre>
<pre class='pasm'>
* @method jz jump while 0 == $ecx
*
public static function jz()
</pre>
<pre class='pasm'>
* @method load_all_flags loads all flags to $ah
*
public static function load_all_flags() // load all flags to $ah
</pre>
<pre class='pasm'>
* @method end
* reset chains
*
public static function end()
</pre>
<pre class='pasm'>
* @method quit
* exits the program
*
public static function quit() // exit program
</pre>
<pre class='pasm'>
* @method ea
* move $ecx to $ah
*
public static function ea() // move ecx to ah
</pre>
<pre class='pasm'>
* @method ae
* move $ah to $ecx
*
public static function ae() // move ah to ecx
</pre>
<pre class='pasm'>
* @method mov_ecx
* move $ecx to $ah
*
public static function load_str($str = "") // mov ecx to $string
</pre>
<pre class='pasm'>
* @method coast
* Go through rest of commands after $ldp drop
*
public static function coast() // the secret sauce. Go through rest of commands after $ldp drop
</pre>
<pre class='pasm'>
* @method loop requires that PASM::$ecx
* be filled with a value > counter. Otherwise
* it will not work out.
*
public static function loop() // loop til $counter == $ecx
</pre>
<pre class='pasm'>
* @method mul multiply $ah by $ecx
*
public static function mul() // another ah * ecx
</pre>
<pre class='pasm'>
* @method movs move $string to stack and clear
*
public static function movs() // move $string to stack and clear
</pre>
<pre class='pasm'>
* @method sptr move stack pointer to end
*
public static function sptr()
</pre>
<pre class='pasm'>
* @method setup_chain create the chain of functions
*
public static function setup_chain(string $METHOD)
</pre>
<pre class='pasm'>
* @method movr move $string to stack and clear $array
*
public static function movr() // move $array to stack and clear
</pre>
<pre class='pasm'>
* @method debug_loop_count show the current position in looping
*
public static function debug_loop_count()
</pre>
<pre class='pasm'>
* @method addr move param1 (array) onto $array
*
public static function addr(array $ar) // move $string to stack and clear
</pre>
<pre class='pasm'>
* @method mwait wait $wait microseconds
*
public static function mwait() // wait $wait microseconds
</pre>
<pre class='pasm'>
* @method nop skip function
*
public static function nop()
</pre>
<pre class='pasm'>
* @method not performs a not on $ah and $ecx
*
public static function not() // performs a not on $ah ad ecx
</pre>
<pre class='pasm'>
* @method or performs a not on $ah and $ecx
*
public static function or() // performs an or on ecx and ah
</pre>
<pre class='pasm'>
* @method out disperses $buffer to $conn (server connection with $string)
*
public static function out() // moves buffer to site $string
</pre>
<pre class='pasm'>
* @method ops push $object to $stack
*
public static function ops(string $object, array $args) // push object to stack
</pre>
<pre class='pasm'>
* @method pop pop stack
*
public static function pop() // pop stack
</pre>
<pre class='pasm'>
* @method push push ecx to stack
*
public static function push() // push ecx to stack
</pre>
<pre class='pasm'>
* @method bitl shift ah left ecx times
*
public static function bitl() // shift ah left ecx times
</pre>
<pre class='pasm'>
* @method bitr shift ah right ecx times
*
public static function bitr() // shift ah right ecx times
</pre>
<pre class='pasm'>
* @method wrapl pull bit around ecx times on ah
*
public static function wrapl() // pull bit around ecx times on ah (left)
</pre>
<pre class='pasm'>
* @method wrapr pull bit around ecx times on ah
*
public static function wrapr() // same as above but (right)
</pre>
<pre class='pasm'>
* @method run exeute file on system (Windows or Linux)
*
public static function run()
</pre>
<pre class='pasm'>
* @method flags set flags from ah bits [0,2]
*
public static function flags() // set flags from ah bits [0,2]
</pre>
<pre class='pasm'>
* @method bitwisel bitwise left $ecx $ah times
*
public static function bitwisel() // bitewise left
</pre>
<pre class='pasm'>
* @method bitwiser bitwise right $ecx $ah times
*
public static function bitwiser() // same right
</pre>
<pre class='pasm'>
* @method nxs move to copy next element in $string to $strp
*
public static function nxs() // next(string);
</pre>
<pre class='pasm'>
* @method restr copy current element in $string to $strp
*
public static function restr() // next(string);
</pre>
<pre class='pasm'>
* @method set set ${$key} to $new_value
*
public static function set($key, $new_value) // set ${$key} with $new_value
</pre>
<pre class='pasm'>
* @method seteadx copy adx to ecx
*
public static function set_ecx_adx() // copy adx to ecx
</pre>
<pre class='pasm'>
* @method seterdx copy rdx to ecx
*
public static function set_ecx_rdx()
</pre>
<pre class='pasm'>
* @method setebdx copy bdx to ecx
*
public static function set_ecx_bdx()
</pre>
<pre class='pasm'>
* @method setecdx copy cdx to ecx
*
public static function set_ecx_cdx()
</pre>
<pre class='pasm'>
* @method seteddx copy ddx to ecx