NewsProductsSprinterSupportDownloadSprinter ForumAbout usLinksSite map Russian site

English
   >> Software programming for the computer Sprinter
Thread views: 105 View all threadsNext thread*Threaded Mode

dirtyfly
(stranger )
2002/08/20 12:49
Creating a new character set and keybord layout Reply to this post

How is it done ?

thanks

Jorge
http://www.retroreview.com



Denis ParinovVIP
(Sprinter Team)
2002/08/20 22:49
Re: Creating a new character set and keybord layout new [re: dirtyfly]Reply to this post

> How is it done ?

It's possible by DSS function 36h (K_SETUP). Sprinter has two keyboard
layouts (standard and alternative) which can be switched by [CTRL] +
[SPACE]. Each layout includes four keyboard modes. You can reload all of
them.


LD HL,LAYOUT
LD A,0 ;LAYOUT FOR NORMAL MODE
LD BC,#0036
RST #10

Esc EQU #1B
Bcs EQU #08
Tab EQU #09
Cps EQU #00
Spc EQU #20
Ent EQU #0D

;Normal mode (without CAPS and SHIFT not pressed)
DB "`",Esc,"1","2","3","4","5","6","7","8","9","0","-","=",Bcs
DB Tab,"q","w","e","r","t","y","u","i","o","p","[","]"
DB Cps,"a","s","d","f","g","h","j","k","l",";","'",Ent
DB #00,"z","x","c","v","b","n","m",#2C,".","/",#00,#5C
DB #00,#00,Spc,#00,#00
DB #00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00
DB #00,#00,#00,"/","*","-","+",Ent,#00
DB #00,#00,#00,#00,#00,#00,#00,#00,#00,#00

;SHIFT mode (without CAPS and SHIFT are pressed)
DB "~",Esc,"!","@","#","$","%","^","&","*","(",")","_","+",Bcs
DB Tab,"Q","W","E","R","T","Y","U","I","O","P","{","}"
DB Cps,"A","S","D","F","G","H","J","K","L",":",#22,Ent
DB #00,"Z","X","C","V","B","N","M","<",">","?",#00,"|"
DB #00,#00,Spc,#00,#00
DB #00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00
DB #00,#00,#00,"/","*","-","+",Ent,#00
DB #00,#00,#00,#00,#00,#00,#00,#00,#00,#00

;CAPS mode (with CAPS and SHIFT not pressed)
DB "`",Esc,"1","2","3","4","5","6","7","8","9","0","-","=",Bcs
DB Tab,"Q","W","E","R","T","Y","U","I","O","P","[","]"
DB Cps,"A","S","D","F","G","H","J","K","L",";","'",Ent
DB #00,"Z","X","C","V","B","N","M",#2C,".","/",#00,#5C
DB #00,#00,Spc,#00,#00
DB #00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00
DB #00,#00,#00,"/","*","-","+",Ent,#00
DB #00,#00,#00,#00,#00,#00,#00,#00,#00,#00

;CAPS+SHIFT mode (with CAPS and SHIFT are pressed)
DB "~",Esc,"!","@","#","$","%","^","&","*","(",")","_","+",Bcs
DB Tab,"q","w","e","r","t","y","u","i","o","p","{","}"
DB Cps,"a","s","d","f","g","h","j","k","l",":",#22,Ent
DB #00,"z","x","c","v","b","n","m","<",">","?",#00,"|"
DB #00,#00,Spc,#00,#00
DB #00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00
DB #00,#00,#00,"/","*","-","+",Ent,#00
DB #00,#00,#00,#00,#00,#00,#00,#00,#00,#00





Denis ParinovVIP
(Sprinter Team)
2002/08/20 23:13
Re: Creating a new character set and keybord layout new [re: dirtyfly]Reply to this post

Also use BIOS fn. 0B6h for set new font and 0B8h for get current font.
Font format like first 2K bytes of spectrum screen. You can load font at the 4000h address in ZX mode and see it.
for example, char "A" will placed in the memory as

offset bytes
0041h 00000000b
0141h 00111100b
0241h 01000010b
0341h 01000010b
0441h 01111110b
0541h 01000010b
0641h 01000010b
0741h 00000000b







Anonymous
(Unregistered)
2002/08/21 06:26
Re: Creating a new character set and keybord layout new [re: Denis Parinov]Reply to this post

thnaks for the info, but what about prefix keys ?



Denis ParinovVIP
(Sprinter Team)
2002/08/21 21:19
Re: Creating a new character set and keybord layout new [re: Anonymous]Reply to this post

Could you tell me about prefix keys more? I'm not sure that I understood.




(stranger )
2002/08/22 01:39
Re: Creating a new character set and keybord layout new [re: Denis Parinov]Reply to this post

Hi denis, in Portuguese keyboard, characters like й и г х are produce by first pressing ґ then 'a' the ґ are called dead keys, й х are simbols that apear aftter 2 keystrokes


thanks

Jorge



Denis ParinovVIP
(Sprinter Team)
2002/08/23 02:42
Re: Creating a new character set and keybord layout new Reply to this post

Now I see. Today, In the current keyboard driver support two layouts only. And switcher between it. But it's not a problem. For a short time we can add a new feature in the build-in keyboard driver which will support 'dead keys'. Could you email us about more information for it?





View all threadsNext thread*Threaded Mode
Jump to