16-bit real mode table scanner?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
imate900
Member
Member
Posts: 80
Joined: Sat Feb 28, 2009 11:43 am

16-bit real mode table scanner?

Post 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"
Current work on a OS: SauOS (project homepage: http://code.google.com/p/sauos/)
Image
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: 16-bit real mode table scanner?

Post by Combuster »

loop, string-compare?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: 16-bit real mode table scanner?

Post by Brendan »

Hi,
Combuster wrote:loop, string-compare?
Hash? :)


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: 16-bit real mode table scanner?

Post by Candy »

Look at what higher level programming languages do and implement that?

std::map, HashMap ?
Post Reply