Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Che------iler V1.0
- By Volundr
- machine has 5 registers, 1024 bytes of RAM, and 10 reagent
- reservoirs that can be any reagent_container/glass item.
- it also has a pill generator, a vial generator, and an eject port.
- registers:
- ptr = data pointer (16-bit) (data is 0-indexed)
- iptr = instruction pointer (16-bit) (1-indexed)
- sx = source register (8-bit) (valid sources are 1-10 for the 1 thru
- 10 reagent reservoirs) in the machine
- tx = target register (16-bit) (valid targets are reservoirs as above, or 11 for pill generator, 12 for vial generator, or 13 for ejection port)
- ax = amount register (16-bit)
- > = ++ptr
- < = --ptr
- + = ++*ptr
- - = --*ptr
- [ = while (*ptr) {
- ] = }
- { = mov *ptr sx
- } = mov sx *ptr
- ( = mov *ptr tx
- ) = mov tx *ptr
- ^ = mov *ptr ax
- ' = mov ax *ptr
- $ = heat or cool reagent in sx to ((273 - tx) + ax) kelvin
- @ = transfer ax units of reagent from reservoir sx to target tx
- ~ = "comp-le" the code so it cannot be retrieved again via the load button.
- (generates pill or vial if they are targeted, or sends regs out ejector port)
- Both the heating and transferring steps are delayed. Heating takes as long as the chem-stry lab heater would take. Transferring reagents takes 1/4 * amount seconds.
Advertisement
Add Comment
Please, Sign In to add comment