I'm pretty sure that's from uninitialized memory; I don't bother to clear the screenassainator wrote:Heey Valix, that looks good!
But are that blue and dark-purple pixels above the green rectangle supposed to be there?

I'm pretty sure that's from uninitialized memory; I don't bother to clear the screenassainator wrote:Heey Valix, that looks good!
But are that blue and dark-purple pixels above the green rectangle supposed to be there?
I don't see any :Sxvedejas wrote:I'm pretty sure that's from uninitialized memory; I don't bother to clear the screenassainator wrote:Heey Valix, that looks good!
But are that blue and dark-purple pixels above the green rectangle supposed to be there?
Not seeing any, are you sure your LCD-screen or TFT-screen doesn't have any defect pixels?assainator wrote:Heey Valix, that looks good!
But are that blue and dark-purple pixels above the green rectangle supposed to be there?
I had to put my hands on the screen to actually see it, but I only see one, so I'm wondering if there are any others.fronty wrote:The blue pixel is definitely there. If it isn't, I'm selling a screen which has magical dead pixel which moves when you scroll.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
Wow. That's look great! I like also this font. A bit small but I likexvedejas wrote:Really simple font driver now
The text scrolls up as it is printed, just as expected. I need to implement some sort of cursor so that text input looks more natural. I made the font myself, you'll notice that each character fits in a 5x6 space, which lets me represent each letter as a 32-bit integer. It's convenient for the time being.
Are you sure you're ack'ing the interrupt?On this I have a working GDT and IDT and a semi-working IRQ handler (which doesn't seem to re-enable interrupts before leaving, so only one clock tick is displayed (even though immediately before IRET it executes STI)).
I reset the PICs as soon as an IRQ is called, so yes. I'll see if other interrupts (non-clock related ones) work after the clock interrupt...piranha wrote:Are you sure you're ack'ing the interrupt?On this I have a working GDT and IDT and a semi-working IRQ handler (which doesn't seem to re-enable interrupts before leaving, so only one clock tick is displayed (even though immediately before IRET it executes STI)).
-JL
Code: Select all
if (rs.interrupt >= 40)
outb(0xA0, 0x20); /* Reset slave */
outb(0x20, 0x20); /* Reset master */
Code: Select all
for (;;)
sti();
You don't need to do this, in fact it's probably a bad idea: if your code gets interrupted while IRQs are disabled, for example because of a CPU exception, you would end up briefly enabling IRQs even if the code was expecting them to be disabled. IRET will automatically load the copy of eflags that got saved on the stack when the interrupt occurred, and that will restore the state of IF (the IRQ enable bit in eflags).Synon wrote:even though immediately before IRET it executes STI.