MuchubaTactics
Any qt devs?
John
Okay thanks
/
Help
yas$dev
Help
what
/
```mov si, bstr call print jmp $ print: mov ah, 0xe mov bh, 0x0 lodsb ;tried also mov al, [si] int 0x10 ret times 510-($-$$)db 0 dw 0xaa55 bstr db "test"```
/
what
i have tried making this but it doesnt work
/
what
i want to print the first char of bstr
/
what
if i move the char using mov al, 't' it works but if i move it using the address it shows nothing
/
i have tried changing the position mov si, bstr call print jmp $ bstr db "test" print: mov ah, 0xe ;mov bh, 0x0 mov al, [si] int 0x10 ret times 510-($-$$)db 0 dw 0xaa55
/
but now it show an S why it shows an S
alessandro
does someone knows csv parser doesn't use like vector structure....
/
i have solved it by adding org at the beginning
/
now i want to place that code in the usb to be runned by the computer
/
i have also tried to repleace the mbr boot code with that one
/
using an hex editor
/
but i dont know if i am doing it right
Hamza
And what is the problem with ur code ?
What you want your program to do?
/
Help i have tried opening the usb in an hex editor and there is Physical drive and logical drive
/
at the start of which is the MBR
/
it is different
/
at the start of the physical i can see strings like "cannot find the operating system"
/
and before it there are bytes that seems like machine code
/
It worked i have booted the usb and printed a string
/
modifying the first bytes of the physical drive
/
i am not creating an OS
/
i wanted to make a usb that shows something
/
i boot the usb and shows the text
/
i have already done it
/
but do you know if there is another way to print text without using interrupts
/
because on a website was written that they are slow
/
and its better to interact with the graphic card
Anonymous
Help: I need the user to be able to input a large number of characters ( this is why 'char' is not suitable, it limits characters to 256 ) and I want the user to be able to use new lines. What type should i declare now(in C)?
Deepak Chaurasia
%[^\n] Array
Deepak Chaurasia
%[^\n] Array
Klimi this can't use?
klimi
Klimi this can't use?
I haven't seen "%[^\n]" data type before
klimi
Yes i mean any name.
Unicode is just series of bytes, it should work just fine tho
Deepak Chaurasia
Deepak Chaurasia
https://stackoverflow.com/questions/39431924/what-does-n-mean-in-c
Anonymous
Unicode is just series of bytes, it should work just fine tho
I can't put more than one letter,debugger says overflow.
klimi
Oh god, this... Use char array
Anonymous
Oh god, this... Use char array
I don't know the syntax
Deepak Chaurasia
char a[100000]
klimi
Or if you can use gnu extension just use get line
Anonymous
Or if you can use gnu extension just use get line
Syntax please,you're talking to an absolute novice here.
klimi
Syntax please,you're talking to an absolute novice here.
You want syntax? Just look to the C language draft
klimi
Otherwise
klimi
#howtoask
alessandro
char a[100000]
it's best way to create underperfom program
klimi
it's best way to create underperfom program
Not the best, he could add one more zero :D (jk)
alessandro
Not the best, he could add one more zero :D (jk)
do you know library about tree systems
alessandro
so i want load more data by files and i need a lot space to elaborate that
klimi
I think you can do something like %20[] to limit it
klimi
do you know library about tree systems
Tree systems? You mean tree data structures?
klimi
You are using C only?
alessandro
klimi
Then you can use the standard library
alessandro
yep
alessandro
wait, is there tree implementation in stl?
klimi
/
what do you mean
alessandro
hash map
/
can you make an example code that draws a line for example
klimi
what do you mean
0xb80000 is the VGA buffer which you can use to display text onto the screen in real mode, if you want to print onto the screen, you can use that. You could also just ask the bios to draw it for you but I think you have written you don't want that
klimi
can you make an example code that draws a line for example
Its text only AFAIK, look onto the osdev wiki
klimi
hash map
That's unordered set and map
alessandro
That's unordered set and map
in that case it's unordered_map, alright?
klimi
in that case it's unordered_map, alright?
Ya you can find it on cppreference
alessandro
thx
/
Ya you can find it on cppreference
and how can i write to that address
klimi
so to draw a text on the screen i place charters at that address or what
Have you really checked the osdev wiki? https://wiki.osdev.org/Bare_Bones
klimi
and how can i write to that address
You write into google "cppreference std::unordered_map"