mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-18 02:06:43 +00:00
Updated Instruction Set (markdown)
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user