diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index aa6b2f9..d23874d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] name: PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }} steps: - name: Checkout diff --git a/pasm.html b/pasm.html index fe0e5bf..79056f2 100644 --- a/pasm.html +++ b/pasm.html @@ -20,7 +20,7 @@ public static function carry_add()
-     * @method add uses addition to form $rdx from $ecx annd $ah
+     * @method add uses addition to form $rdx from $ecx and $ah
      *
     public static function add()
 
@@ -66,21 +66,21 @@ public static function bit_test() // bit is filled in pointer
-     * @method bit_test_comp search thru arbitry $ecx for the $ahth bit
+     * @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 thru byte and see the $ah'th bit
+    public static function bit_test_comp(bool $bitc = false)         // look through byte and see the $ah'th bit
 
-     * bit_test_comp search thru arbitry $ecx for the $ahth bit
+     * 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
 
-     * @method bit_test_comp search thru arbitry $ecx for the $ahth bit
+     * @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
@@ -283,7 +283,7 @@
     public static function stack_cmov_ne()
 
-     * @method fcomp substracts the $ST0 stack pointer
+     * @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
@@ -295,7 +295,7 @@
     public static function cosine()    // change top of stack to cosine of top of stack
 
-     * @method stack_pnt_rev goes thru the stack backward,
+     * @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
@@ -343,7 +343,7 @@
 
      * @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 everytime
+     * name it every time
      *
     public static function stack_load() // stack with count on stack
 
@@ -380,7 +380,7 @@ public static function subea() // like subtract but backwards
-     * @method subae substracts $ecx from $ah
+     * @method subae subtracts $ecx from $ah
      * and puts the value in $rdx
      *
     public static function subae()  // $ah - $ecx
@@ -545,7 +545,7 @@
 
      * @method fxch exchange values from one stack place to another (the top)
      *
-    public static function fxch()  // 
+    public static function fxch()  //
 
      * @method fxtract get highest significand and exponent of number
@@ -590,7 +590,7 @@
 
      * @method in $string is server, collects in $buffer
      *
-    public static function in()    // 
+    public static function in()    //
 
      * @method inc increment $ecx
@@ -645,7 +645,7 @@
 
      * @method jae jump while $ah >= $ecx
      *
-    public static function jae() 
+    public static function jae()
 
      * @method jb jump while $ah < $ecx
@@ -804,19 +804,19 @@
     public static function load_all_flags()    // load all flags to $ah
 
-     * @method end 
+     * @method end
      * reset chains
      *
     public static function end()
 
-     * @method quit 
+     * @method quit
      * exits the program
      *
     public static function quit() // exit program
 
-     * @method ea 
+     * @method ea
      * move $ecx to $ah
      *
     public static function ea()   // move ecx to ah
@@ -835,9 +835,9 @@
 
      * @method coast
-     * Go thru rest of commands after $ldp drop
+     * Go through rest of commands after $ldp drop
      *
-    public static function coast()     // the secret sauce. Go thru rest of commands after $ldp drop
+    public static function coast()     // the secret sauce. Go through rest of commands after $ldp drop
 
      * @method loop requires that PASM::$ecx
@@ -899,7 +899,7 @@
 
      * @method or performs a not on $ah and $ecx
      *
-    public static function or()    // performs a or on ecx and ah
+    public static function or()    // performs an or on ecx and ah
 
      * @method out disperses $buffer to $conn (server connection with $string)
@@ -1057,7 +1057,7 @@
     public static function setbe()
 
-     * @method setc set rd to ah if CF == 1 
+     * @method setc set rd to ah if CF == 1
      *
     public static function setc()
 
@@ -1252,7 +1252,7 @@ public static function xadd() // ah = $ah + ecx && rdx = ah
-     * @method xch move ecx to ah annd vice versa
+     * @method xch move ecx to ah and vice versa
      *
     public static function xch()  // reverse ecx and ah
 
diff --git a/pasm.php b/pasm.php index da7eee1..7626989 100644 --- a/pasm.php +++ b/pasm.php @@ -1,5 +1,5 @@ = $ecx * */ - public static function jae() + public static function jae() { PASM::setup_chain(__METHOD__); @@ -3032,7 +3032,7 @@ public static function load_all_flags() // load all flags to $ah } /** - * @method end + * @method end * reset chains * */ @@ -3045,7 +3045,7 @@ public static function end() } /** - * @method quit + * @method quit * exits the program * */ @@ -3057,7 +3057,7 @@ public static function quit() // exit program } /** - * @method ea + * @method ea * move $ecx to $ah * */ @@ -3105,10 +3105,10 @@ public static function load_str($str = "") // mov ecx to $string /** * @method coast - * Go thru rest of commands after $ldp drop + * Go through rest of commands after $ldp drop * */ - public static function coast() // the secret sauce. Go thru rest of commands after $ldp drop + public static function coast() // the secret sauce. Go through rest of commands after $ldp drop { $counted = 0; $count = count(PASM::$chain); @@ -3430,7 +3430,7 @@ public static function not() // performs a not on $ah ad ecx * @method or performs a not on $ah and $ecx * */ - public static function or() // performs a or on ecx and ah + public static function or() // performs an or on ecx and ah { PASM::setup_chain(__METHOD__); if (PASM::$ecx or PASM::$ah) { @@ -4075,7 +4075,7 @@ public static function setbe() } /** - * @method setc set rd to ah if CF == 1 + * @method setc set rd to ah if CF == 1 * */ public static function setc() @@ -4869,7 +4869,7 @@ public static function xadd() // ah = $ah + ecx && rdx = ah } /** - * @method xch move ecx to ah annd vice versa + * @method xch move ecx to ah and vice versa * */ public static function xch() // reverse ecx and ah diff --git a/pasm2.php b/pasm2.php index efece62..048a456 100644 --- a/pasm2.php +++ b/pasm2.php @@ -110,7 +110,6 @@ public static function get(string $var = "ah") */ public static function file_read(string $file, string $var = "string") { - yield PASM::${$var} = file_get_contents($file); return new static; } @@ -163,7 +162,7 @@ public static function carry_add() /** * - * add uses addition to form $rdx from $ecx annd $ah + * add uses addition to form $rdx from $ecx and $ah * */ public static function add() @@ -295,13 +294,13 @@ public static function bit_test() // bit is filled in pointer /** * - * bit_test_comp search thru arbitry $ecx for the $ahth bit + * 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 thru byte and see the $ah'th bit + public static function bit_test_comp(bool $bitc = false) // look through byte and see the $ah'th bit { PASM::setup_chain(__METHOD__); @@ -315,7 +314,7 @@ public static function bit_test_comp(bool $bitc = false) // look thru by /** * - * bit_test_comp search thru arbitry $ecx for the $ahth bit + * bit_test_comp search through arbitrary $ecx for the $ahth bit * and set $CF to it's returned value reset $ecx to 0 * */ @@ -334,7 +333,7 @@ public static function bit_test_reset() // Clear bit (ah) test flag /** * - * bit_test_comp search thru arbitry $ecx for the $ahth bit + * bit_test_comp search through arbitrary $ecx for the $ahth bit * and set $CF to it's returned value and ecx[$ah] to 1 * */ @@ -931,7 +930,7 @@ public static function stack_cmov_ne() /** * - * fcomp substracts the $ST0 stack pointer + * fcomp subtracts the $ST0 stack pointer * from $ah and pops its last value off * */ @@ -974,7 +973,7 @@ public static function cosine() // change top of stack to cosine of top of st /** * - * stack_pnt_rev goes thru the stack backward, + * stack_pnt_rev goes through the stack backward, * in reverse, and sets the $sp variable to its position * */ @@ -1136,7 +1135,7 @@ public static function recvr_stack(string $filename) * * 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 everytime + * name it every time * */ public static function stack_load() // stack with count on stack @@ -1156,7 +1155,7 @@ public static function stack_load() // stack with count on stack * * stack_mrg uses $key so it's indexable by string coefficient * 'fc' so you can have the count of the reference rather than - * name it everytime, all of this while merging native $array and $stack + * name it every time, all of this while merging native $array and $stack * */ public static function stack_mrg() // stack with count on stack @@ -1280,7 +1279,7 @@ public static function store_int_pop() // same as above, but with pop /** * - * substract_rev subtracts $ah from $ech and places the + * subtract_rev subtracts $ah from $ech and places the * value in $rdx * */ @@ -1299,7 +1298,7 @@ public static function subtract_rev() // like subtract but backwards /** * - * substract substracts $ecx from $ah + * subtract subtracts $ecx from $ah * and puts the value in $rdx * */ @@ -3235,7 +3234,7 @@ public static function load_str($str = "") // mov ecx to $string * * */ - public static function coast() // the secret sauce. Go thru rest of commands after $ldp drop + public static function coast() // the secret sauce. Go through rest of commands after $ldp drop { $counted = 0; $count = count(PASM::$chain); @@ -3580,7 +3579,7 @@ public static function not() // performs a not on $ah ad ecx * * */ - public static function or() // performs a or on ecx and ah + public static function or() // performs an or on ecx and ah { PASM::setup_chain(__METHOD__); if (PASM::$ecx or PASM::$ah) {