Updated Instruction Set (markdown)

simon987 2020-07-31 19:02:46 -04:00
parent cbb44ce427
commit b042319d38

@ -256,9 +256,9 @@ destination = destination - 1
#### Description
`DIV` performs unsigned division on `Y:A` with `source` as divisor and stores the result into `A` and the remainder in `Y`.
> NOTE: `DIV` operates on a 32 bit integer composed of `Y:A`. So multiple `DIV` instructions without setting Y to what you want will result into unexpected results
Division by zero triggers a `INT 0` 
> NOTE: that a division by 0 will set the (undocumented) error flag and the break flag. This will halt execution.
> NOTE: `DIV` operates on a 32 bit integer composed of `Y:A`. So multiple `DIV` instructions without setting Y to what you want will result into unexpected results
> This is a somewhat complicated instruction,
> see the [source](https://github.com/simon987/Much-Assembly-Required/blob/master/Server/source/main/java/net/simon987/server/assembly/instruction/DivInstruction.java) if needed