Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Font fail (or so I assume… yet to fix it) changing to 90x60 text mode:
Currently my OS is more or less an amalgamation of code from various tutorials, some of which I don't even understand (definitely not happy about that bit), so my plan is to get it all running using tutorials and examples if need be, then read/rewrite big chunks of it until I know why it works
Font fail (or so I assume… yet to fix it) changing to 90x60 text mode:
Currently my OS is more or less an amalgamation of code from various tutorials, some of which I don't even understand (definitely not happy about that bit), so my plan is to get it all running using tutorials and examples if need be, then read/rewrite big chunks of it until I know why it works
You're using the 8x16-font instead of the 8x8-font, which is why it got cut off. This might be useful.
StephanVanSchaik wrote:You're using the 8x16-font instead of the 8x8-font, which is why it got cut off. This might be useful.
Thanks, I got it working shortly after doing that post. Also, the line length was wrong—I'd hard-coded it as 80 and forgot to change it when changing modes.
This is a text-mode transcript of an attempt to print the sizes of various data types.
«eOS
A char is assumed to be 8 bA short is is assumed to be 8 bA short is 10000ssume
d to be 8 bA sho0000s 10000ssumed to be 8 bA sh00000s 10000ssumed to be 8 bA s00
0000s 10000ssumed to be 8 bA 0000000s 10000ssumed to be 8 bA bits.
0s 10000ssumed to be 8 bA bits.An int is sumed to be 8 bA bits.An 100000 sumed t
o be 8 bA bits0000000000 sumed to be 8 bA bit00000000000 sumed to be 8 bA bi0000
00000000 sumed to be 8 bA b0000000000000 sumed to be 8 bA 00000000000000 sumed t
o be 8 bA bits.
00000000 sumed to be 8 bA bits.A long is sumed to be 8 bA bits.A l1000000sumed t
o be 8 bA bits.0000000000sumed to be 8 bA bits00000000000sumed to be 8 bA bit000
000000000sumed to be 8 bA bi0000000000000sumed to be 8 bA b00000000000000sumed t
o be 8 bA 000000000000000sumed to be 8 bA bits.
000000000sumed to be 8 bA bits.A long long is to be 8 bA bits.A long l1000000 t
o be 8 bA bits.000000 l1000000 to be 8 bA bits0000000 l1000000 to be 8 bA bit000
00000 l1000000 to be 8 bA bi000000000 l1000000 to be 8 bA b0000000000 l1000000 t
o be 8 bA 00000000000 l1000000 to be 8 bA bits.000000 l1000000 to be 8 b
I fixed the problem (my buffer was being cleared incorrectly), but this was the first time I've had my OS vomit in any kind of visible way. I found it strangely cheering...
I think it's just that his vararg implementation takes arguments the wrong way round... (was hoping something to do with postfix notation of the "reverse" operator, but I don't think it's that ).