DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
NEW! DOSGames.com has been massively upgraded to v2.0 with TONS of new features!
Check out the new design and dozens of new features including online play!


Scan Code Finder

 
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation
Author Message
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Wed Aug 19, 2015 11:36 am     Post subject: Scan Code Finder Reply with quote

Scan Code Finder

http://www.mediafire.com/download/mkc92nj2z8c7cez/codefind.zip
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Wed Aug 19, 2015 11:38 am     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

If we are working in C it is easy to use key detections.

However if we are working in assembly language we need the scan codes.

So ironically this C program finds the scan codes for assembly hehe
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Wed Aug 19, 2015 11:40 am     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

So if we wanted to detect say one of the keyboard letters in assembly:

We would use the scan code finder for that specific key press code. hehe
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Wed Aug 19, 2015 11:44 am     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

interrupt 16h using AH value equal to 0 is the scan code detection routine

the same interrupt using AH value equal to 1 is the same except:

it only stops when no key is in the buffer

The zero flag is equal to 1 if no key is in the buffer

(earlier I handed out an interrupt list and this interrupt is listed there)
[please verify just in case my memory is wrong]
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Wed Aug 19, 2015 12:05 pm     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

Scancode cheat sheet just in case mine doesn't work right.

http://www.mediafire.com/view/ki279csil0l4k97/scan_codes.pdf
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Mon Aug 24, 2015 8:42 pm     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

Here is a scan code finder.

It is written in all Borland Turbo Assembler 4.1 unlike the previous one.

The previous one was made using Borland Turbo C 2.01 at that time.

http://www.mediafire.com/download/ee93qib4xud2j04/honours3.zip
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Tue Aug 25, 2015 2:27 am     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

In this scan coder finder one we have letters.

It is still made in pure Borland Turbo Assembler 4.1.

The only difference is that the letters are made to be interchangeable.

For instance, in the future you get bored and just install the new one.

So it looks different.

The message is the same however the set is different.

In previous ones of my custom set is was not made to be easily changeable.

This one still looks generic just for testing purposes (my beta) haha
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Tue Aug 25, 2015 2:27 am     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

http://www.mediafire.com/download/s27hr5r4abbatyx/original.zip
Back to top
tienkhoanguyen
PSEUDOCODER


Offline
Joined: 05 Sep 2014
Posts: 2664
Location: Texas

PostPosted: Tue Aug 25, 2015 1:36 pm     Post subject: God, Cheese-its & Rice, is number one!hehe Reply with quote

Cheese-its & Rice!hehe

Here is my updated scan code finder.

It has the proper alignment for AL and AH texts.

If you compare this with the version written in C the values *should* be same.

When you press a key it shows the scan code in AL and AH accordingly.

Please note that contrary to popular beliefs you need BOTH AL and AH values.

http://www.mediafire.com/download/1avajr310l2wrac/20f825v2.zip
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)