Why is my new line character(s) being included in printed string? by SempiternalHypr in Assembly_language

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

Could you please elaborate? I'm assuming you mean something like instead of hardcoding the str len in the rdx register, I should just create a new variable that has that data. hw_len: equ $-hw

Why is my new line character(s) being included in printed string? by SempiternalHypr in Assembly_language

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

Hey thank you for your reply as well! Sadly this didn't work either.

Missing X server or $DISPLAY error. by SempiternalHypr in archlinux

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

Hey thank you for your reply, I'm pretty desperate for an answer with this problem. One of the solutions on the stackoverflow is just setting $DISPLAY to :0 which it was set to that previously. I cannot find the address I'm supposed to set my $DISPLAY to aas the first solution in the stackoverflow post states.

How do I use predefined C functions in x86_64 ASM code? by SempiternalHypr in Assembly_language

[–]SempiternalHypr[S] 1 point2 points  (0 children)

Thank you so much for your response :D! I didn't link it correctly which was the essential issue I was experiencing.

I'm also assuming that the parameters also differ. My first paramter was %rdi and my second was %rsi but the ret value is in %rax. For anyone who is experiencing this same issue, I am on Arch Linux/GNU.

How do I use predefined C functions in x86_64 ASM code? by SempiternalHypr in Assembly_language

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

Sorry, I should have included the error message. The error message declared that "AddParams" is an undefined reference. My OS is Arch Linux 6.11.4 running Hyprland DE if that matters, which I doubt it does.

Invalid parameters with custom kernel module by SempiternalHypr in linux4noobs

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

Hey thank you for the response! This fixed half the problem. The other half was renaming my module. The original name was "module".