From e60e83ce68c1367ba3e88fd1d22486d941ba8dff Mon Sep 17 00:00:00 2001 From: Marcin Gasperowicz Date: Sat, 22 Dec 2012 01:13:13 +0100 Subject: [PATCH] Sortron driver stub Thaks to tpw_rules --- include/sortron.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 include/sortron.h diff --git a/include/sortron.h b/include/sortron.h new file mode 100644 index 0000000..361b08f --- /dev/null +++ b/include/sortron.h @@ -0,0 +1,33 @@ +// sortron.h + +// SORTRON DOCUMENTATION + +// Addresses +// $00: Command +// Set to $FF upon error +// Set to not $FF (presumably $00) upon success +// $01: read number of slots +// returns number of inventory slots in $02 +// $02: read slot +// slot number in $02, +// returns info about item slot +// $03: pull items +// slot number in $02, count in $01, output color in $0C +// $04: match items on input +// number of items in $01, hash in $04, color in $0D, +// only returns success when match is complete + +// $01: number of items in slot + +// $02-$03: slot to operate on + +// $04-$07: item hash + +// $08-$09: item damage + +// $0A-$0B: maximum item damage + +// $0C: output color +// 0 is none, 1-16 is white-black + +// $0D: input color \ No newline at end of file