Page 1 of 1

16-bit real mode table scanner?

Posted: Mon Apr 13, 2009 3:16 pm
by imate900
I'd love how I can scan for different values using tables. Say for example:

Code: Select all

table:
;    name    value
dd "Hello", "World"
dd "World", "Hello"
and:

Code: Select all

table:
;  numb     value
dd 0x01,    "Hello"
dd 0x02,    "World"

Re: 16-bit real mode table scanner?

Posted: Mon Apr 13, 2009 4:00 pm
by Combuster
loop, string-compare?

Re: 16-bit real mode table scanner?

Posted: Mon Apr 13, 2009 5:30 pm
by Brendan
Hi,
Combuster wrote:loop, string-compare?
Hash? :)


Cheers,

Brendan

Re: 16-bit real mode table scanner?

Posted: Mon Apr 13, 2009 11:00 pm
by Candy
Look at what higher level programming languages do and implement that?

std::map, HashMap ?