MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/geyis/itsyos_a_simple_380_byte_os_kernel/c1n4bdr/?context=3
r/programming • u/impomatic • Mar 30 '11
140 comments sorted by
View all comments
2
I was going to ask why he didn't use pusha/popa, but was already asked on the page. Anyone know why ?
8 u/impomatic Mar 31 '11 It's strictly 8086 code. pusha/popa require at least an 80186 :-) 3 u/zokier Mar 31 '11 Next obvious question is why 8086 instead of, lets say, AMD64? 3 u/impomatic Mar 31 '11 I'm hoping to port Itsy to a couple of 16 bit microcontrollers including the MSP430, so using 8086 should make the task easier. :-) 2 u/kragensitaker Mar 31 '11 That's an interesting question, although bootstrapping an AMD64 OS is going to be a bit more involved than "org 7c00h, pad to 512 bytes with 0x55 0xaa as the last two, write to boot sector".
8
It's strictly 8086 code. pusha/popa require at least an 80186 :-)
3 u/zokier Mar 31 '11 Next obvious question is why 8086 instead of, lets say, AMD64? 3 u/impomatic Mar 31 '11 I'm hoping to port Itsy to a couple of 16 bit microcontrollers including the MSP430, so using 8086 should make the task easier. :-) 2 u/kragensitaker Mar 31 '11 That's an interesting question, although bootstrapping an AMD64 OS is going to be a bit more involved than "org 7c00h, pad to 512 bytes with 0x55 0xaa as the last two, write to boot sector".
3
Next obvious question is why 8086 instead of, lets say, AMD64?
3 u/impomatic Mar 31 '11 I'm hoping to port Itsy to a couple of 16 bit microcontrollers including the MSP430, so using 8086 should make the task easier. :-) 2 u/kragensitaker Mar 31 '11 That's an interesting question, although bootstrapping an AMD64 OS is going to be a bit more involved than "org 7c00h, pad to 512 bytes with 0x55 0xaa as the last two, write to boot sector".
I'm hoping to port Itsy to a couple of 16 bit microcontrollers including the MSP430, so using 8086 should make the task easier. :-)
That's an interesting question, although bootstrapping an AMD64 OS is going to be a bit more involved than "org 7c00h, pad to 512 bytes with 0x55 0xaa as the last two, write to boot sector".
2
u/Hominem Mar 31 '11
I was going to ask why he didn't use pusha/popa, but was already asked on the page. Anyone know why ?