X-Git-Url: http://git.squeep.com/?p=dcpu16;a=blobdiff_plain;f=dcpu16.h;h=a96bd417ba1d8760a64be1817770ec452b68ebaa;hp=af964e7e46c561f1923e5f49ff8dc5f8768623e8;hb=e9cced1de1d6428996d255243b48513e82f233a5;hpb=f5fd90933a71d7b838c2dab33e177a6e0ff68f50 diff --git a/dcpu16.h b/dcpu16.h index af964e7..a96bd41 100644 --- a/dcpu16.h +++ b/dcpu16.h @@ -46,8 +46,8 @@ void dcpu16_state_print(struct dcpu16 *); /* print the contents of ram from second to third argument */ void dcpu16_dump_ram(struct dcpu16 *, DCPU16_WORD, DCPU16_WORD); -/* print the instruction at the specified address */ -void dcpu16_disassemble_print(struct dcpu16 *, DCPU16_WORD); +/* print the instruction at the specified address, returns number of words consumed in decoding */ +DCPU16_WORD dcpu16_disassemble_print(struct dcpu16 *, DCPU16_WORD); /* register a callback for an accounting event */ int dcpu16_acct_add(struct dcpu16 *, dcpu16_acct_event_ match_all, dcpu16_acct_event_ match_any, void (*fn)(dcpu16_acct_event_, DCPU16_WORD));