I'm going to show you how to implement the cls command into your NASM assembly language kernel.
Level: Piece o' cake
Code:
Code: Select all
pusha
mov ah, 0
mov al, 3
int 10h
popa
Code: Select all
jmp mainloop
Hope this works.
Code: Select all
pusha
mov ah, 0
mov al, 3
int 10h
popa
Code: Select all
jmp mainloop
come on. you sound offended, I by the way don't quite understand what you had been banned for, I am not for banning everyone, except spammers and malusers with bad intentions, but I'm not a moderator either. but saying similar like you said bolded, is just ... infantile. tryna sound as an arrogant @$$ when it all screams about offense is childish.bzt9999 wrote:Hi @Schol-R-LEA, I'm glad you're happy that I'm back, but I haven't left. This is my no.1 site when I need something to laugh at >D
UEFI isn't yet supported, you need mov ah, 0 (In other words, you can use mov ah, 0Eh). Note: I am experimenting with the codebzt9999 wrote:WTF? I seriously doubt that any sane kernel in 2018 (even hobby ones) would use realmode as main operating mode... Besides what if I'm using 80x50 or 132x60 resolution? Or even better LFB? And what if the kernel is booted on a UEFI machine? And why do you use two mov instructions? Why not "mov ax, 3"?
And what's that jump to a arbitrary label??? There's simply no sense in that without a context.
Please ignore the troll.TimothyWilliams wrote:UEFI isn't yet supported, you need mov ah, 0 (In other words, you can use mov ah, 0Eh). Note: I am experimenting with the codebzt9999 wrote:WTF? I seriously doubt that any sane kernel in 2018 (even hobby ones) would use realmode as main operating mode... Besides what if I'm using 80x50 or 132x60 resolution? Or even better LFB? And what if the kernel is booted on a UEFI machine? And why do you use two mov instructions? Why not "mov ax, 3"?
And what's that jump to a arbitrary label??? There's simply no sense in that without a context.
I'm not sure what you are trying to say with this. Not supported by what? The statement makes no sense to me - it isn't a matter of 'supported' or 'not supported', for either the system firmware or the software. A system either has a UEFI firmware, or it doesn't.TimothyWilliams wrote:UEFI isn't yet supported,
What bzt is saying is that the AL and AH registers are the two lower and upper halves of the AX register, so the two 8-bit move instructionsTimothyWilliams wrote:you need mov ah, 0 (In other words, you can use mov ah, 0Eh).
Code: Select all
mov ah, 0
mov al, 3
Code: Select all
mov ax, 3
Code: Select all
mov ah, 7
mov al, 3
Code: Select all
mov ax, 0x703
Code: Select all
mov ax, 703h
Code: Select all
mov ax, 1795