klange changed the topic of #osdev to: Operating System Development || Don't ask to ask---just ask! || For 3+ LoC, use a pastebin (for example https://gist.github.com/) || Stats + Old logs: http://osdev-logs.qzx.com New Logs: https://libera.irclog.whitequark.org/osdev || Visit https://wiki.osdev.org and https://forum.osdev.org || Books: https://wiki.osdev.org/Books
gog has quit [Quit: byee]
gog has joined #osdev
pretty_dumm_guy has quit [Quit: WeeChat 3.4]
ElectronApps has joined #osdev
sdfgsdfg has quit [Quit: ZzzZ]
x88x88x has quit [Ping timeout: 240 seconds]
x88x88x has joined #osdev
x88x88x has quit [Read error: Connection reset by peer]
stosby has joined #osdev
stosby has left #osdev [#osdev]
eryjus has joined #osdev
Burgundy has quit [Ping timeout: 260 seconds]
<graphitemaster> Merry Christmas. I present to you the weirdest CPU instruction
sdfgsdfg has joined #osdev
<kazinsal> dangit, why am I always the one getting the cursed christmas presents
<blockhead> i'm just wondering what one would actually use that instruction for?
scoobydoo has quit [Read error: Connection timed out]
<kazinsal> it's for fiddling with binary coded decimal
<eryjus> BCD -- multiply by 10
<eryjus> im slow tonight
<blockhead> until you get a four digit decimal number?
scoobydoo has joined #osdev
<kazinsal> yeah, that's the best example I can think of as well. zero out dst1 then RLD and you get dst1:dst2 = dst2*10
<zid> BCD rotate seems.. not that useful
<zid> I wonder if a specific customer/use-case wnated it
<kazinsal> "hey can you make BCD multiplication by 10 faster" "what"
<zid> ohh right thanks kaz
<zid> maybe?
<zid> Doesn't solve the hard part, transporting the top and bottom sections between bytes
<kazinsal> my guess is the reason it's a 12-bit BCD rotate in two 8-bit arguments is that the uppermost 4 bits is a control nibble
<kazinsal> sign bit etc
<eryjus> many IBM midrange computers still use this prolifically (IBMi for example) -- called packed decimal. the highest order nibble is sign
vdamewood has joined #osdev
heat has joined #osdev
<moon-child> graphitemaster: whaat
<moon-child> whaaaaaaaaaaaaaaat
<moon-child> is the point of that?
<moon-child> I mean, fuz recently pointed out a ppc instruction to transpose the bits of a 64-bit quantity as if it were an 8x8 matrix. I can at least _imagine_ a use for that. This is just ...
<zid> I've never wanted to swap the digits in a decimal number, regardless of how it happened to be encoded at the time
biblio has quit [Quit: Leaving]
xing_song has quit [Quit: xing_song]
heat has quit [Remote host closed the connection]
gog has quit []
gog has joined #osdev
sdfgsdfg has quit [Quit: ZzzZ]
skipwich has quit [Ping timeout: 240 seconds]
newpy has joined #osdev
<newpy> I'm trying to load a small test binary into bochs emulator and it's saying failed to read boot disk
<newpy> I grepped the file and it has the magic number aa55, so I'm not sure why it won't at least try and read?
<newpy> I tested an older binary and it works, so I'm not sure what I'm doing wrong
<bslsk05> ​github.com: MiniOS/boot_sect.asm at master · luisfmcalado/MiniOS · GitHub
<zid> easier to check the binary than the asm
<zid> It may have ended up too long etc
<newpy> zid, aa55 was on the right line, ..1f0
<newpy> or did you mean something else by too long?
<newpy> the right line of the hexdump I mean, aa55 was just before line 0x..200
blockhead has quit []
<zid> yea sounds like it wasn't too long then
<newpy> I'm wondering if maybe I used the wrong flags for nasm or gcc
<zid> the image looks okay, assuming 1fe and 1ff are 55 and aa like you said you checked
<zid> probably just booted it wrong
<newpy> I used gcc & ld to create a binary, and nasm to create the boot loader, then cat to combine them
<newpy> do you mean 1fe is aa?
<zid> probably
<zid> no
<zid> dw 0xaa55 is right, 1fe 55, 1ff aa
<newpy> is line ..1f0 increasing addresses from left to right?
<zid> yes
<newpy> ie. I should see xxxx xxxx .... 55aa?
<zid> aa55 if you're dumping shorts
<zid> I generally use -C
<newpy> oh ok
freakazoid12345 has quit [Ping timeout: 245 seconds]
<newpy> ah I see, 55 aa
sicrs has joined #osdev
skipwich has joined #osdev
ElectronApps has quit [Remote host closed the connection]
<newpy> I think the issue is with the `cat load.bin kernel.bin > os-image` bit
<newpy> when I try using just load.bin it works (although it jumps all over the place because it's loading garbage from the subsequent disk sectors)
<newpy> but when I try to cat load.bin with the kernel.bin (made from kernel.c) and load the subsequent binary, it says failed to read boot disk
<newpy> even though when I hexdump the cat output it has aa55 at the correct address
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scoobydoo has quit [Read error: Connection timed out]
scoobydoo has joined #osdev
rorx has quit [Ping timeout: 268 seconds]
rorx has joined #osdev
xing_song1 has joined #osdev
sdfgsdfg has joined #osdev
ravan has quit [Ping timeout: 240 seconds]
xing_song1 has quit [Quit: xing_song1]
newpy has quit [Quit: Leaving]
ElectronApps has joined #osdev
arahael has quit [Quit: WeeChat 3.1]
vdamewood has joined #osdev
vdamewood has quit [Ping timeout: 240 seconds]
mctpyt has joined #osdev
pg12 has quit [Ping timeout: 256 seconds]
pg12 has joined #osdev
sicrs is now known as stosby
biblio has joined #osdev
wgrant has quit [Ping timeout: 260 seconds]
MarchHare has joined #osdev
GeDaMo has joined #osdev
wgrant has joined #osdev
happy-dude has quit [Quit: You have been kicked for being idle]
<immibis_> maybe it needs to be padded to a multiple of 512 bytes (he left)
wereii has quit [Quit: ZNC - https://znc.in]
wereii has joined #osdev
<geist> huh. dug out an old dual PCIe serial card and plugged it in, never looked at how it was detected
<zid> pcie to pci to serial?
<geist> basically it's an 16850, looks like it has 3 bars, two of which are IO, but linux detects it as two serial ports 8 io apart
<geist> and uses a single IRQ, though it is also capable of MSI
<bslsk05> ​IRCCloud pastebin | Raw link: https://irccloud.com/pastebin/raw/PwBofpUu
<geist> dunnno precisely what the second io ports are for, but i'm guessing you can access the normal registers via the io and mmio space?
<geist> dunno if there's a '16850' spec
scoobydoo has quit [Read error: Connection timed out]
<geist> zid: nah it's a tiny single chip on a tiny pcie card
opios2 has quit [Ping timeout: 245 seconds]
<geist> it's old in the sense i got it like 3 or 4 years ago and never actually plugged it in until now. but it's new in that it's pcie, etc
<zid> we were talking about devices like that the other day, cheaper to re-use an old stock pci version than make a pci-e version so a lot of those 'random x on a pci-e card' are pcie to pci to x
<geist> yah
<zid> Is my christmas present in the mail yet btw?
scoobydoo has joined #osdev
<geist> yes. yes it is, but i dunno if they will like lumps of coal
<geist> but at some point that'll be pretty valuable
<zid> I'll probably die in the water wars before coal is worth anything significant
<geist> interesting, kinda trained myself to do A4 pitch on demand
<zid> Are you singing into your serial ports again
<geist> so far i can wait like 30 minutes and then do it again and still be basically right on pitch
<geist> was fiddling with trying to figure out my (untrained) vocal range.
<geist> looks like i can fairly solidly do about F2 to F4
<zid> I learned what my 'native' hum was at some point with a spectro..graph?
<zid> but that was 20 years ago and I've forgotten
<geist> after F4 i gotta go falsetto then i can go another octave or so
<zid> I can whistle D7 apparently
<moon-child> geist: hmm, I can do c on demand, but have to manually walk up scales to get anywhere else
<geist> noice
MarchHare has quit [Quit: Leaving]
<gog> geist doing vocal training eh :thinking:
<geist> gonna sing in an opera next after this osdev crap
<GeDaMo> Osdev! The musical!
<FireFly> fits in well next to the musical about tail-call optimisation
<geist> hmmm, i dunno that might be a little too risque
<moon-child> FireFly: that was really cute
<FireFly> agree!
<moon-child> but, not knowing anything about js, after watching it I assumed that all the js engines do tco
<moon-child> and then I found out the truth
<FireFly> the worst thing is it was attempted to spec TCO to be mandatory in strict-mode (well, I think it is still spec'd), but got pushback from engine implementors
<FireFly> an attempt was made to fix it ;_;
scoobydoo has quit [Read error: Connection timed out]
scoobydoo has joined #osdev
gog has quit [Ping timeout: 240 seconds]
gog has joined #osdev
gog has quit [Read error: Connection reset by peer]
gog` has joined #osdev
gog` has quit [Ping timeout: 252 seconds]
gog has joined #osdev
mctpyt has quit [Ping timeout: 256 seconds]
sdfgsdfg has quit [Quit: ZzzZ]
Burgundy has joined #osdev
<zid> I have a beef vindaloo naan microwave thing, it's actually pretty good for how cheap and nasty it looks
<zid> In other news, mele kalikimaka
gog has quit [Read error: Connection reset by peer]
<moon-child> zid: good to know
ravan has joined #osdev
gog has joined #osdev
sdfgsdfg has joined #osdev
biblio has quit [Quit: Leaving]
_xor has quit [Read error: Connection reset by peer]
_xor has joined #osdev
asdew has quit [Ping timeout: 268 seconds]
asdew has joined #osdev
scoobydoo has quit [Read error: Connection timed out]
scoobydoo has joined #osdev
sdfgsdfg has quit [Quit: ZzzZ]
gog has quit [Ping timeout: 240 seconds]
nyah has joined #osdev
ElectronApps has quit [Read error: Connection reset by peer]
mahmutov has joined #osdev
jimbzy has quit [Remote host closed the connection]
jimbzy has joined #osdev
the_lanetly_052 has joined #osdev
the_lanetly_052 has quit [Max SendQ exceeded]
the_lanetly_052 has joined #osdev
wgrant has quit [Ping timeout: 240 seconds]
gog has joined #osdev
gog` has joined #osdev
gorgonical has quit [Ping timeout: 268 seconds]
gorgonical has joined #osdev
gog` has quit [Quit: byee]
dutch has joined #osdev
dude12312414 has joined #osdev
pieguy128 has quit [Quit: ZNC 1.8.2 - https://znc.in]
robyndrake has quit [Quit: WeeChat 3.3]
pieguy128 has joined #osdev
robyndrake has joined #osdev
zaquest has quit [Remote host closed the connection]
zaquest has joined #osdev
diamondbond has joined #osdev
pretty_dumm_guy has joined #osdev
scoobydoo has quit [Read error: Connection timed out]
diamondbond has quit [Quit: Leaving]
scoobydoo has joined #osdev
freakazoid12345 has joined #osdev
<jason1234> hello
<gog> hi
<jason1234> is lk littlekernel compatible with openpandora arm mini notebook?
<jason1234> (dragonbox)
<jason1234> I try to run a more bsd or unix alike system on it. linux kinda boring
jjuran has quit [Ping timeout: 268 seconds]
jjuran has joined #osdev
freakazoid12345 has quit [Ping timeout: 240 seconds]
xenos1984 has quit [Read error: Connection reset by peer]
<geist> jason1234: good question. whats the SOC?
<geist> almost certainly not out of the box, unless it happens to be a common SOC, but it's usually a matter of how easily you can port it
<geist> but then the question is what do you want to do with it? LK is not a general purpose OS
scoobydoo has quit [Read error: Connection timed out]
scoobydoo has joined #osdev
xenos1984 has joined #osdev
<jimbzy> Lil' Kurnol
<geist> the lillest Colonel
<jimbzy> :D
<junon> kentucky fried kernels
<junon> happy chrismannukwanza everyone
<jimbzy> junon, You too.
<geist> getting ready for cold. we might even get a little bit of snow on christmas! (rare for here)
<jimbzy> It's going to be 70 here I think.
<jimbzy> In the 60's today. It feels like a Bay Area Christmas.
<zid> our last white christmas was erm.. 2003?
<zid> and that's rounding up
<geist> though bay area has been gettin rain this week i think
<jimbzy> The only difference is that I'm sober and not at the Santa Cruz boardwalk :D
<geist> seattle area is going to get down into the 10s (F) next week, but a bit of a question if the moisture will be there to make much snow
<geist> but 10s are record cold for seattle area
<jimbzy> That seems cold for that area? Not really familair
<zid> I don't know what 10 means but it sounds cold
<geist> that'd be about -10C or so
<zid> I don't even know what -10C is if I am honest, I think the coldest it has ever been here is -4
<geist> -5 to -10 area. rarely gets that cold, like once every decade or so
<jimbzy> My scanner is scanning! It only recognizes single character tokens, but it's scanning.
dutch has quit [Quit: WeeChat 3.3]
<zid> I meant to finish my crappy parser at some point, I got it working for a*b+c
<zid> I needed to add each token type to a struct with whether it binds left to right and which prec it had, and add a couple of loops
<zid> but that sounded like effort
freakazoid343 has joined #osdev
<jimbzy> Yeah, I'm not sure how I'm gonna get all that working yet.
<zid> I basically invented a method to do it, then found it out had a name afterwards and a nice article explaining it :p
<jimbzy> It happens.
<bslsk05> ​en.wikipedia.org: Shunting-yard algorithm - Wikipedia
<zid> nah
<zid> precedence climbing
<jimbzy> I'll probably use recursive decent parsing.
<bslsk05> ​eli.thegreenplace.net: Parsing expressions by precedence climbing - Eli Bendersky's website
<zid> it is the same algo
<zid> but this is the linear scanning version rather than recursion
<jimbzy> Another interesting one: https://en.wikipedia.org/wiki/Earley_parser
<bslsk05> ​en.wikipedia.org: Earley parser - Wikipedia
<jimbzy> Gonna check that out, zid.
<GeDaMo> Just use RPN, all these problems go away :P
<jimbzy> Yeah, but that's no fun.
<zid> Or just only allow operators to bind left to right on same prio :P
<zid> 3+4*5 is now 35.
<GeDaMo> I think APL does that except it's right-to-left
<zid> apl is all matrices right though so that makes sense
<zid> Take the 1x1 row by row inverse transform A of the columns of the sideways rows of B...
<zid> GeDaMo: If I end up watching the damn sudoku solver in apl on youtube again for the 10th time you're in trouble
<jimbzy> XD
<bslsk05> ​'A Sudoku Solver in APL' by DyalogLtd (00:09:43)
scoobydoo has quit [Read error: Connection timed out]
scoobydoo has joined #osdev
<jimbzy> My keyboard doesn't support APL :(
<jimbzy> GeDaMo, I bet that thing feels good under the fingers.
wgrant has joined #osdev
gdd has quit [Ping timeout: 256 seconds]
pretty_dumm_guy has quit [Quit: WeeChat 3.4]
freakazoid343 has quit [Ping timeout: 240 seconds]
<geist> i picked up an original Apple ][ the other day and forgot that the original keyboard was quite nice
<geist> a little more mechanical action than the later ones
<jimbzy> I remember them from elementary school.
<kingoffrance> the web kind of ruined it, but i like the thumbs up/down point left/right on the space cadet
<kingoffrance> are you sure you want to kill program xyz? <wavers> thumbs down like emperor
freakazoid12345 has joined #osdev
GeDaMo has quit [Remote host closed the connection]
mahmutov has quit [Ping timeout: 252 seconds]
biblio has joined #osdev
sdfgsdfg has joined #osdev
biblio has quit [Ping timeout: 256 seconds]
freakazoid12345 has quit [Ping timeout: 250 seconds]
biblio has joined #osdev
biblio has quit [Changing host]
biblio has joined #osdev
biblio has quit [Client Quit]
scoobydoo has quit [Read error: Connection timed out]
scoobydoo has joined #osdev
mahmutov has joined #osdev
vdamewood has joined #osdev
vdamewood has quit [Ping timeout: 240 seconds]
pretty_dumm_guy has joined #osdev
pretty_dumm_guy has quit [Ping timeout: 268 seconds]
Belxjander has joined #osdev
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
pretty_dumm_guy has joined #osdev
<moon-child> zid: apl is cool though
<zid> apl is cool
<gog> gog is cool
sdfgsdfg has quit [Quit: ZzzZ]
<zid> zid is cool
vdamewood has joined #osdev
* gog throws a fishy to zid
* vdamewood throws another fishy to gog
* moon-child slaps vdamewood around a bit with a large trout
<FireFly> trouted, as fishbot would exclaim
* vdamewood grabs the trout, fries it up, and eats it with lemon.
<junon> yall making me nostalgic and hungry
<zid> nostagic for fishy?
<zid> The flash game? :P
<vdamewood> junon: Were you beaten with trout as a child?