flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3, 4 Next |
Author |
|
dosin 11 Dec 2007, 04:22
I was not sure and just want to point it out for anyone programming them that it could cause problems if its over looked!
|
|||
![]() |
|
sinsi 11 Dec 2007, 04:49
The only thing I have a problem with is the LED's - anyone have an idea?
They only work sometimes, I think the problem is delaying while waiting for the ACKs. If you think of a binary value for the IRQ mask, it makes more sense Code: mov al,0xFE out 0x21,al ;or this mov al,11111110b out 0x21,al Bits 0-7 of port 21 are irq 0-7, bits 0-7 of port A1 are irq 8-15. Setting a bit will disable the irq. Think of 21/A1 as the irq disable registers. |
|||
![]() |
|
dosin 11 Dec 2007, 04:56
Code: set_keyboard_LEDs: ; bl = keyboard LEDs status mov ah,0ADh call write_8042 mov ah,0EDh call write_keyboard mov ah,bl and ah,111b call write_keyboard mov ah,0AEh call write_8042 ret write_8042: in al,64h test al,10b jnz write_8042 mov al,ah out 64h,al ret write_keyboard: mov al,ah out 60h,al in al,60h cmp al,0FAh jne write_keyboard ret this should get you started! |
|||
![]() |
|
edfed 11 Dec 2007, 10:00
updated int9 for real mode above ^
now it support extended keys. and have more comments for beginners. UFO NOSS |
|||
![]() |
|
tom tobias 11 Dec 2007, 18:05
edfed wrote: ...UFO NOSS... ![]() |
|||
![]() |
|
edfed 11 Dec 2007, 20:37
UFO NOSS is now a reconized acronym
Use FOr NOn Steal Style ![]() |
|||
![]() |
|
edfed 11 Dec 2007, 21:14
keyboard INT9 problems:
some keys have a shift status on desktop PC i don't know how to fix this shift status it makes appear the shift key when extended keyx are pressed. as i don't use a big keyboard buffer, i don't see actually how can i fix this problem. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; optional shift: fixed now, the problem is, some key bytes break code aren't send when too much keys are pressed. need a fix too... |
|||
![]() |
|
tom tobias 11 Dec 2007, 22:13
edfed wrote: UFO NOSS is now a reconized acronym |
|||
![]() |
|
edfed 11 Dec 2007, 22:29
ouah, les fautes de français, impressionant.
therefore, i only invented this acronym for fun UFO NOSS is fun no? remind the alien and the fast and furious NOS UFO like alien NOS like boost asm i cannot use the UN acronym cause it's the united nation hemmmm why not UN, UN in frensh means 1 1=un regarding to acronyms standard, i don't care about because it's not the name that is important. i launch a thread, find a FASM related, and generally an ASM licence. in the terms of my UFO NOSS note that i don't want to change this acronym, UFO NOSS is a fun name. i love fun FUN vs BABYLON <-- you see what i mean there? war ina babylon peace in funland |
|||
![]() |
|
edfed 12 Dec 2007, 03:38
update of my int9 for real mode.
now, it supports the extended key, ignore alternate shift. next step is to manage the leds and make some int services. keyboard service are: ctrl break pause prtscr numlock shiftlock ctrl alt del scroll lock fn key, for notebook and the ps/2 mouse what a big problem to make this fu***n os.
|
|||||||||||
![]() |
|
Hayden 12 Dec 2007, 13:01
if you play with the leds you will need to syncronize with the BIOS NumLock, CapsLock and ScrollLock status bytes too. else your leds may go out of sync with the actual on/off status. I have seen interrupt handlers (keyb) that will try to sync w/ these bytes too.
_________________ New User.. Hayden McKay. |
|||
![]() |
|
edfed 12 Dec 2007, 13:26
bios status are usefull only if you need a compatibility with bios
my int is not compatible with normal keyboard programming so the numlock, shiftlock, scrolllock leds and status will be in an other place. in the keytable for exemple. i don't want to use any bios function. remake all the computer system with a completelly different basis. i'll only use 2 BIOS interrupts, and only at startup. int 13h for bootloading int 10h to switch in mode 13h these are the only BIOS int i use. |
|||
![]() |
|
edfed 13 Dec 2007, 01:32
one more feature for this int, the key.none.
Code: ;key is the address of the keyboard field ;key.map is the offset of the key map in the keyboard field ;the keyboard field is set by int9 and is in ram. mov al,[key+key.map] or al,al je nokeypressed keypressed: ... nokeypressed: ... |
|||
![]() |
|
vid 13 Dec 2007, 02:28
sinsi:
Code: mov al,0xED out 60h,al @@: in al,64h test al,10b jne @b mov al, 7 and al,111b out 60h,al |
|||
![]() |
|
edfed 14 Dec 2007, 04:43
everybody:
Code: org 100h mov ah,4 debut: mov al,0edh out 60h,al @@: in al,64h and al,2 jne @b mov al,ah out 60h,al shr ah,1 jne @f mov ah,4 @@: mov ecx,39999999 @@: dec ecx jne @b in al,60h cmp al,1 jne debut ret |
|||
![]() |
|
Hayden 15 Dec 2007, 14:22
edfed wrote: bios status are usefull only if you need a compatibility with bios correct, but BIOS still installs a keyboard handler way before control is passed to any boot sector _________________ New User.. Hayden McKay. |
|||
![]() |
|
edfed 15 Dec 2007, 14:45
yep, but nowadays, computers are corrupted by bad oses, limited to c language compatibility.
|
|||
![]() |
|
vid 15 Dec 2007, 18:11
Quote: yep, but nowadays, computers are corrupted by bad oses, limited to c language compatibility. why don't you use some better OS then? And what exactly would you make better in Windows, for example? Or, in Linux? |
|||
![]() |
|
edfed 16 Dec 2007, 02:07
what i want on a pc:
what i want for a pc, it is an audio sequencer at startup, a video game emulator at startup, a 3d builder at startup, a complete graphic game audio video with many links into the softwares, for exemple, use the function play mp3 from audio player into the sequencer. a complete asm ide into a easy import and call system. functions from other software become shared, or not, as you want. use the hexeditor objet from text pad into the graphic or 3d maker. replacing a current function or kernel portion, see the internet connexion as asm self modifiing source code and some starnge things... all things that are not easy to do with current software make netwoork data capture, isolate or ban some objects on web pages by a click, see and explore the hard disk like a real plate composed array 3D, poah, many many things |
|||
![]() |
|
Goto page Previous 1, 2, 3, 4 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.