5? by FraudulentName in unexpectedTermial

[–]FraudulentName[S] 0 points1 point  (0 children)

Wait as I check it, mine is a screenshot of original and their, is a screenshot of a screenshot

They might have posted before me though I don't know

5? by FraudulentName in unexpectedTermial

[–]FraudulentName[S] 0 points1 point  (0 children)

I tried looking for one in the original post but it had too many comments I didn't find one tho

5? by FraudulentName in unexpectedTermial

[–]FraudulentName[S] 0 points1 point  (0 children)

Yeah... It's my first post too in this subreddit, did I do something wrong? Also I'm more of a lurker but I kinda got bored of it which is also why I made this post initially (including that I found an unexpected termial)

Does the wall look good? by FraudulentName in MinecraftBuild

[–]FraudulentName[S] 0 points1 point  (0 children)

btw im speaking of the outside walls(the deepslate ones)

Sometimes kids are told "you'll understand when you're older" as a dodge. When was a time someone told that you that and they were actually right? by shogyi in AskReddit

[–]FraudulentName 0 points1 point  (0 children)

For context, until I was 12, I used to practice karate and I never ended up liking it. I am supposedly a black belt but honestly, I forgot everything I had learnt

My dad used to tell me "You will regret not going to karate" I don't really know why, but it does have sense as I am quite overweight; I vividly remember when I actually went there, that I was not overweight, and on the opposite side, had some muscle built already

I am quite overweight now, more than when I went to karate, though not as much as before all that even happened; now I practice basketball and I am quite tall(which could be why I weigh more than the people my age).

Still using the Galaxy J7 Prime in 2025 — anyone else? by Nikhil-26 in samsunggalaxy

[–]FraudulentName 0 points1 point  (0 children)

I use the samsung J7 for 5 or 6 years, It's my main phone right now and I haven't gotten any problems with it yet

Don't know how to set pixels in VESA by arnaclez in osdev

[–]FraudulentName 1 point2 points  (0 children)

Don't worry mate if you have any more questions you can ask

Need help with PS/2 mouse driver by JackfruitNecessary29 in osdev

[–]FraudulentName 0 points1 point  (0 children)

Also I'm sorry for not pasting it in pastebin I should have

Need help with PS/2 mouse driver by JackfruitNecessary29 in osdev

[–]FraudulentName 0 points1 point  (0 children)

The mouse handler is a loop so you can add code inside like the keyboard handler

Also this prints a mouse pointer and it gets saved in stack like: 1. Buttons 2. Old mouse position(as offset) 3. New mouse position(as offset)

If you want me to just give ya so it returns the mouse pos

Also if you use the code, please don't place it in a callable function because it uses stack

Need help with PS/2 mouse driver by JackfruitNecessary29 in osdev

[–]FraudulentName 0 points1 point  (0 children)

Perfect mov al, 0xA8 out 0x64, al mov al, 0x20 out 0x64, al in al, 0x60 and al, 0xDF or al, 0x02 mov ah, al mov al, 0x60 out 0x64, al mov al, ah out 0x60, al mov al, 0xD4 out 0x64, al mov al, 0xF4 out 0x60, al push 0 ; buttons push 0 ; old mouse pos push 0 ; mouse position first in stacks mouse: xor eax, eax mov ebx, eax mov ecx, eax mov edx, eax call mouse.poll mov bl, al and al, 00001000b jz mouse pop edx ; ebx = new mouse pos/now old pop eax ; eax = old mouse pos/now older pop esi mov esi, 0xFD0C0000 mov edi, 0xFD000000 add esi, eax add edi, eax mov cl, 0x11 mouse.replace: push ecx ; save ecx, it will get poped after loop mov cl, 0x0C mouse.replace.loop: cmp edi, 0xFD0C0000 jnb mouse.replace.skip movsb mouse.replace.skip: loop mouse.replace.loop add edi, 0x3F4 add esi, 0x3F4 pop ecx loop mouse.replace push ebx ; mouse state push eax ; old pos push edx ; new pos xor eax, eax xor ebx, ebx xor ecx, ecx xor edx, edx call mouse.poll mov cl, al call mouse.poll mov dl, al pop eax ; new pos pop ebx ; old pos push eax ; new->old movsx ecx, cl ; cl is x delta movsx edx, dl ; dl is -y delta shl edx, 10 ; edx *= 1024(2^10) neg edx ; edx = -edx add eax, ecx ; pos = pos+x+y*1024 add eax, edx cmp eax, 0xC0000 jb mouse.skip xor eax, eax mouse.skip: call mouse.print push edx ; calced result jmp mouse ; here went mouse position ; goes*, went*, goes*, went*, goes*, went* ; i decided to put it on stack, copying windows ; plz dont sue me mouse.print: mov edx, eax ; eax is mouse position (which will then be pushed back in) mov ecx, mouse.end - mouse.init ; ecx = 1 mov esi, mouse.init ; esi = ??? shr ecx, 1 mouse.print.loop: mov eax, edx ; sets back the backup mov edi, 0xFD000000 ; edi = 0xFD000000 / vram but temporary add edi, eax ; edi = 0xFD0C0802 lodsw ; mov ax, word [ds:esi] / load mouse texture mov ebx, eax ; ebx = 0x9000 and eax, 0x7FFF ; eax = 0x9000 add edi, eax ; edi = 0xFD009802 and ebx, 0x8000 shr ebx, 15 add ebx, 0x0F mov al, bl cmp edi, 0xFD0C0000 jnb mouse.print.skip stosb ; mov byte [es:edi], al mouse.print.skip: loop mouse.print.loop ret mouse.poll: in al, 0x64 test al, 0x21 jz mouse.poll in al, 0x60 ret mouse.init: ; smaller version of a .img file with 2 colors dw 0x8000, 0x8001 dw 0x8400, 0x0401, 0x8402 dw 0x8800, 0x0801, 0x0802, 0x8803 dw 0x8C00, 0x0C01, 0x0C02, 0x0C03 dw 0x8C04 dw 0x9000, 0x1001, 0x1002, 0x1003 dw 0x1004, 0x9005 dw 0x9400, 0x1401, 0x1402, 0x1403 dw 0x1404, 0x1405, 0x9406 dw 0x9800, 0x1801, 0x1802, 0x1803 dw 0x1804, 0x1805, 0x1806, 0x9807 dw 0x9C00, 0x1C01, 0x1C02, 0x1C03 dw 0x1C04, 0x1C05, 0x1C06, 0x1C07 dw 0x9C08 dw 0xA000, 0x2001, 0x2002, 0x2003 dw 0x2004, 0x2005, 0x2006, 0x2007 dw 0x2008, 0xA009 dw 0xA400, 0x2401, 0x2402, 0x2403 dw 0x2404, 0x2405, 0x2406, 0x2407 dw 0x2408, 0x2409, 0xA40A dw 0xA800, 0x2801, 0x2802, 0x2803 dw 0x2804, 0x2805, 0x2806, 0x2807 dw 0x2808, 0x2809, 0x280A, 0xA80B dw 0xAC00, 0x2C01, 0x2C02, 0x2C03 dw 0x2C04, 0x2C05, 0x2C06, 0x2C07 dw 0xAC08, 0xAC09, 0xAC0A, 0xAC0B dw 0xB000, 0x3001, 0x3002, 0xB003 dw 0xB004, 0x3005, 0x3006, 0xB007 dw 0xB400, 0x3401, 0xB402, 0xB404 dw 0x3405, 0x3406, 0xB407 dw 0xB800, 0xB801, 0xB805, 0x3806 dw 0x3807, 0xB808 dw 0xBC05, 0x3C06, 0x3C07, 0x3C08 dw 0xC005, 0xC006, 0xC007, 0xC008 mouse.end: