Тёмный

But, Can It Run Doom? 

Подписаться
Просмотров 92 тыс.
% 4 514

Original Video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-YT5vB3UqU_E.html
Repo: github.com/cnlohr/mini-rv32ima
Joshua Ashton's Video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zi6osAtyaio.html
Terminal Font: AudioLink Console Heavy audiolink.dev/
Emdoom Repo: github.com/cnlohr/embeddedDOOM/

Наука

Опубликовано:

 

4 дек 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 288   
@bigmistqke
@bigmistqke Год назад
Love how 'But, Can It Run Doom' has become such a landmark moment in a project's existence. Is like when a computer language gets to become self-hosted, a sign of maturity.
@CNLohr
@CNLohr Год назад
Me, too! Self-hosting would be fun, too.
@flavourously
@flavourously Год назад
It's the programming/gaming equivalent to "But can he beat Goku though?"
@NicoKyunKyun
@NicoKyunKyun Год назад
@@flavourously nah, that one gotta be "can it run crysis?"
@goobertnelius
@goobertnelius Год назад
But can it display bad apple? Yes it can if it has some way of interaction and 2 colors at minimum it can.
@mikejones-vd3fg
@mikejones-vd3fg Год назад
John Carmack made doom run on my 486 25mhz , that was impressive, makng it run on a 160mhz state of the art instruction set processor? meh i guess thats impressive(i couldnt do that). But a terrible benchmark for any aspiring programmmer. Make doom run at 30fps on my 486 25mhz machine and ill be impressed, John couldnt do that.
@markustopfer1605
@markustopfer1605 Год назад
Im so glad to see new videos from you. Im a 19 year old student from germany and Im into embedded programming and electronics. Often when i think that something is just to complicated to learn or to program, i come back to your older videos to realize that with enough efford I may be able to achieve exactly what i want or even more. What you've created is incredible...
@CNLohr
@CNLohr Год назад
The only thing that makes things complicated is people who don't really understand what they're doing. If you just start digging and using and growing, eventually your sense of what is intuitive will begin to mirror the world we live in. Don't accept something being "complicated" as an answer. Dig. Because if something is _actually_ is complicated, it means the people who made it didn't understand what they were doing. And you can do better.
@romancharak3675
@romancharak3675 Год назад
@@CNLohr I needed to hear this, about needing to DIG if I don't understand something. Or think it is too complicated. Thank you.
@مقاطعمترجمة-ش8ث
@@CNLohr In most of my drawback in programming is I don't read (or memories) the datasheet(reference) for the language/library/device I wanted to work on, it the most reason why I don't program in C/C++
@CNLohr
@CNLohr Год назад
@@مقاطعمترجمة-ش8ث If you read the datasheets, they start helping you "think" like the designers/authors thought. It is hard to read/process, I know, but that's because it's breaking your brain from the natural way you think, to think in the way that the other engineers think. And it's incredibly valuable to change the way you think.
@sopchek1
@sopchek1 Год назад
@@CNLohr amen bro
@mitrashailendra3817
@mitrashailendra3817 Год назад
One day, scientists will learn how to program reality, and some nutcase will try to run DOOM.
@ingilizadam
@ingilizadam Год назад
I'm trying to design a CPU that works with RISC-V instruction set with a small engineering undergrads team and you came back with RISC-V content. What a coincidence!
@CNLohr
@CNLohr Год назад
You should look at my project. It should give you a pretty good idea of what you really need to make one.
@ingilizadam
@ingilizadam Год назад
@@CNLohr I will, thanks!
@alexender_-oj2eb
@alexender_-oj2eb Год назад
i am literally working on the same project
@viviansusername
@viviansusername Год назад
Clearly your new goal for this CPU is going to have to be to make it run doom, now
@ingilizadam
@ingilizadam Год назад
@@viviansusername Thats what we all have in mind...
@minecrafter0505
@minecrafter0505 Год назад
Sometimes I'm very happy to be just an app dev. Most of this just seems like magic to me... xD
@CNLohr
@CNLohr Год назад
Dig deeper, what you learn will always have applicability!
@coffee-is-power
@coffee-is-power Год назад
Crocodiles with big mouths, long legs and short arms will be cut down in no time, maybe it will pay off if you start expanding what you know instead of getting stuck.
@Kniffel101
@Kniffel101 Год назад
What @@CNLohr said. If you love programming, you'll LOVE low-level development once you get it. It's often much simpler than high-level frameworks and that stuff.
@georgeallen7487
@georgeallen7487 Год назад
@@Kniffel101 A lot of low level stuff is just about being obsessed with documentation.
@CNLohr
@CNLohr Год назад
@@0ri3z3r0 I wouldn't say convoluted. But maybe not-obvious, and you're DEF right that there's a huge lack of learning resources. Everyone wants to make a video about some new javascript framework, but no one's excited to explain really deep principles from 1994.
@thepenguin9
@thepenguin9 Год назад
RISC-V is so fast and efficient that you're always going forwards, at speeds never known! *that's* why pressing player back makes you faceplant the wall
@veaxvoid
@veaxvoid Год назад
This is incredible, looks like magic to me. You emulate processor on a processor to run a video game on it. Just mind beaker.
@CNLohr
@CNLohr Год назад
IKR? It just feels magical when things "come to life" when they become turing complete.
@CharlesVanNoland
@CharlesVanNoland Год назад
You could achieve a sort of temporal antialiasing by instead of skipping entire swaths of pixels - cycle through which one you're actually using for the ASCII output, to get a sort of temporal dithering. Bayer matrix could spread out the order that pixels are sampled each frame to create the fore/back ground colors for each ASCII, rather than just cycling through them in X and Y. What would be even cooler is if each Doom frame was rendered by a handful of these temporal dither frames - if the ASCII output can be faster than the Doom render, by several frames.
@CNLohr
@CNLohr Год назад
Do I smell an incoming pull request? I don't fully understand what you are suggesting, but the code is available and simple!
@roboterson
@roboterson Год назад
This sounds like it would be super flickery, and I don't think there is enough time to anything like stacking frames or doing much in the way of effects.
@iXenox
@iXenox Год назад
@@CNLohr I think they are suggesting to write to the terminal so fast that the ASCII characters blend in with each other. (Imagine reduced opacity on multiple overlayed text characters where lower layers show through) And all that sorting stuff is probably to get the best combination of characters to layer.
@CNLohr
@CNLohr Год назад
@@iXenox Oh, that makes sense. That would be neat to see.
@CharlesVanNoland
@CharlesVanNoland Год назад
@@CNLohr Instead of cycling through the input pixels to an ASCII character you could just average all of the pixels' RGB values that contribute to an ASCII character. That would be more stable. There's also room for employing the various box drawing ASCII characters and effectively treating each ASCII character more like two pixels instead of one. Figuring out the optimal way to represent a set of pixels with an ASCII character could be a whole project unto itself! I definitely think averaging the pixels into the output ASCII character is the way to go though. Outright discarding pixels just feels wrong!
@YourPalTaika
@YourPalTaika Год назад
I can't even write the most basic of code. This is straight up magic to me.
@CNLohr
@CNLohr Год назад
you can learn
@c0smo709
@c0smo709 Год назад
@@CNLohr you can learrn to type ;)
@CNLohr
@CNLohr Год назад
@@c0smo709 thx fixed.
@sumitmamoria
@sumitmamoria Год назад
Very impressive. Just out of curiosity - What do you do for a living and how do you get time to do all this amazing stuff?
@SadlyItsBradley
@SadlyItsBradley Год назад
Oh my god
@minecrafter0505
@minecrafter0505 Год назад
Oh hi Bradley!
@BOLL7708
@BOLL7708 Год назад
Deckard sees you...
@bbqgiraffe3766
@bbqgiraffe3766 Год назад
Doom on 512k is very interesting, I was planning on getting Doom or a Doom clone to work on my 65c02 board at some point but I'd have to design a 512k bank switching system and make the memory manager work with bank switching, which sounds like a nightmare, maybe in the future though
@CNLohr
@CNLohr Год назад
hurrfff that would be really hard. And it would be really slow.
@kargaroc386
@kargaroc386 Год назад
I mean I could argue that SDL, if you just want to push pixels to a window, is so easy that a braindead monkey could do it, and you'd have to be just as lazy as one to be scared by it.
@stanchannelu
@stanchannelu Год назад
Impressive debugging, great stuff
@gazehound
@gazehound Год назад
My favorite tools, valgrinned and lie basan. Seriously though, very cool
@lamprospitsillou6325
@lamprospitsillou6325 Год назад
This video is going to blow up for sure! Great video!
@CNLohr
@CNLohr Год назад
Thanks. I hope! Though it looks like it's already starting to cool down. Didn't really go very far outside youtube.
@lamprospitsillou6325
@lamprospitsillou6325 Год назад
@@CNLohr try posting on Reddit ! (Also i wanted to recomment changing the thumbnail but you already did, looks better now 😁)
@user-dh8oi2mk4f
@user-dh8oi2mk4f Год назад
"Mom, I want a beautiful 3d render" "We already have a beautiful 3d render at home" Beautiful 3d render at home: 8:17
@SplitScreamOFFICIAL
@SplitScreamOFFICIAL Год назад
You actually did it, absolute Madman
@SplitScreamOFFICIAL
@SplitScreamOFFICIAL Год назад
I want to Rephrase it from "can it run doom" to "how long till it runs doom"
@CNLohr
@CNLohr Год назад
Your comment did make the video!
@franzflasch8181
@franzflasch8181 Год назад
Your YT channel is pure gold!👌
@CNLohr
@CNLohr Год назад
Thank you!
@jan_harald
@jan_harald Год назад
protip: basically all terminals support 16-color, not only 8 color, even heckin' linux TTY does! also, you could probably make an optional 256-color mode, which would look a *LOT* better, visually
@CNLohr
@CNLohr Год назад
It would be a lot more text to pipe through the oddball spigot.
@jan_harald
@jan_harald Год назад
@@CNLohr fair at that, although terminal emulators can usually be set to allow pretty fast speeds...also, I've seen people use the half-block characters (one half background color, one half foreground color), is the current way getting more detail, or is that also excess data transmission? it'd need slightly more computation I suppose, but effectively give a canvas of pixels, twice the height and same width as you'd fit with normal characters (with square pixels!)
@Clownacy
@Clownacy Год назад
Rocketing forward when pressing back sounds like that one issue with the 'ticcmd_t' struct, which has member variables that are defined as 'char' without an explicit signedness: on platforms where char is unsigned by default, you'll experience that bug. Making the chars explicitly signed fixes the issue.
@CNLohr
@CNLohr Год назад
INTERESTING. I will have to investigate this!!
@treschlet
@treschlet Год назад
ASCII VR renderer next?
@Dood_
@Dood_ Год назад
With non euclidean graphics
@BOLL7708
@BOLL7708 Год назад
😱
@CNLohr
@CNLohr Год назад
I really don't think it would work well :-/ your eyes would fix on the false-stereo-fusion.
@Littlefighter1911
@Littlefighter1911 Год назад
I know a colleague at uni, that ported DOOM to RISC-V for a demo of our RISC-V CPU. I now feel stupid, for not asking him in time to upload the code to the uni repos. Your version in the terminal runs much faster btw. But our code was also largely unoptimized (I suggested making use of our extensions, as we were using an FPGA with a bunch of custom peripherals, but he was like: "Nah, this is more or less the original DOOM. Using our PPU for the color palette and our extensions would be cheating"). But yeah, our 50MHz RISC-V CPU running on an FPGA runs DOOM in a playable manner, as well. Always funny to see other people doing the same stuff.
@CNLohr
@CNLohr Год назад
My emulated CPU is only around 200MHz on my laptop, so it shouldn't be _that_ much faster.
@notapplicable7292
@notapplicable7292 Год назад
This is exactly my cup of tea!
@caittastic
@caittastic Год назад
i want a doom deep dive!! doom code is always great to hear about
@CNLohr
@CNLohr Год назад
I am not sure if I'd want to focus more on doom or the work I've done to be able to cram it into mini cupcake of an executable.
@caittastic
@caittastic Год назад
@@CNLohr why not both!
@JamesChurchill
@JamesChurchill Год назад
If you really want a DOOM deep dive, check out Fabrice Sanglard's Game Engine Black Book for it.
@mattsadventureswithart5764
@mattsadventureswithart5764 Год назад
What's the font we see when you're looking at the makefile at 6:40? It looks so much better than what I'm using at the moment. Yes, I realise the video is about your work on doom for your emulator, and it's amazing what you've achieved, but that font looks fab.
@CNLohr
@CNLohr Год назад
audiolink.dev/
@lower_case_t
@lower_case_t Год назад
Could that problem you describe at the end be a similar issue with signed/unsigned integers? Like, changing the position by x when moving forward, and x times -1 when moving backwards?
@CNLohr
@CNLohr Год назад
That is possible. Though I have not debugged it yet.
@GrayCrownRBLX
@GrayCrownRBLX Год назад
i have a feeling that soon doom is gonna run on ANYTHING WITH A SCREEN
@CNLohr
@CNLohr Год назад
Or without.
@Rouverius
@Rouverius Год назад
Great to see you back and apparently doing well. Hey, congrats on getting Doom to work,
@CNLohr
@CNLohr Год назад
Thanks!
@richardwatkins6725
@richardwatkins6725 Год назад
this is awesome Teletext Gaming
@innocentsmith6091
@innocentsmith6091 Год назад
Turing completeness fan vs can-it-run-Doom-ness enjoyer
@CNLohr
@CNLohr Год назад
I think they are one in the same.
@SockyNoob
@SockyNoob Год назад
Doom Guy's eyes had me laughing. Look so hilarious in a terminal.
@johanngambolputty5351
@johanngambolputty5351 Год назад
My god this channel is a treasure trove
@CNLohr
@CNLohr Год назад
I tryyy
@fabillo522
@fabillo522 Год назад
I had the same bug launching the player forward on pressing backwards on a Raspberry Pi with my doom port! It's simply to do with Doom assuming a char is signed in the ticcmd_t struct in d_ticcmd.h. I fixed it by explicitly changing "char" to "signed char" haha
@ExtemTheHedgehogLol
@ExtemTheHedgehogLol Год назад
"Okay, but can it run RISC-V?"
@CNLohr
@CNLohr Год назад
I'm sure the internet is on it.
@ExtemTheHedgehogLol
@ExtemTheHedgehogLol Год назад
@@CNLohr true, true.
@yasha8951
@yasha8951 Год назад
I missed your videos!!, what font are you using on your console and editor?
@CNLohr
@CNLohr Год назад
audiolink.dev/
@ernststravoblofeld
@ernststravoblofeld Год назад
Now I need an executable for my soldering iron.
@CNLohr
@CNLohr Год назад
I still haven't done anything to support other screen sizes
@ernststravoblofeld
@ernststravoblofeld Год назад
@@CNLohr I was joking. But it would be better than Tetris.
@TheosTechTime
@TheosTechTime Год назад
Yes, yes it can
@JourneysADRIFT
@JourneysADRIFT Год назад
Thanks for the content. Keep it up.
@CNLohr
@CNLohr Год назад
We'll see how long I can keep the momentum going.
@magolor44
@magolor44 Год назад
Completely off topic, but which font are you using for your terminal emulator?
@CNLohr
@CNLohr Год назад
AudioLink Console audiolink.dev
@Pacca64
@Pacca64 Год назад
Porting doom to TF2 would be pretty funny x3
@CNLohr
@CNLohr Год назад
It may or may not happen. Not sure.
@gvl610
@gvl610 Год назад
Really smooth
@ristomatti
@ristomatti Год назад
I'd be curious to know what drives you into creating mind blowing side projects like this. Taking on a challenge, flexing, pure curiosity, excuse for not working on some even more complex project, just a way to relax or something else? Regardless of the motivator, so much fun even if 97% goes over my head.
@CNLohr
@CNLohr Год назад
I love to teach and inspire and see what people do as they get tools in their hands that they never knew existed.
@ristomatti
@ristomatti Год назад
Best answer!
@Alacritous
@Alacritous Год назад
It's where the brain goes when it's trying to avoid doing real work.
@YonatanAvhar
@YonatanAvhar Год назад
I noticed that you added your font to the description, but Google didn't turn up any links relevant to it, do you have a link for where I find it?
@CNLohr
@CNLohr Год назад
audiolink.dev/
@YonatanAvhar
@YonatanAvhar Год назад
@@CNLohr thanks!
@AlsGeekLab
@AlsGeekLab Год назад
So, now that you have it running in text mode, and without MMU, would it be possible to make this DooM run on a pre MMU capable x86 such as the i80286 or even 8086? I think the entire retro community has been waiting for that for a long time! Please say yes!
@CNLohr
@CNLohr Год назад
It would just be uncomfortably unplayable. That and DOOM isn't exactly the smallest footprint, memory wise.
@ClannerJake
@ClannerJake Год назад
i don't speak Q-Bit, but. i enjoyed the doom interpretive art. i wonder now, how detailed can you make dwarf fortress, doom fotress, i mean asci doom.
@TheMLover
@TheMLover Год назад
Good video man!!!
@creatorbot0056
@creatorbot0056 Год назад
Im waiting for people to run doom on a breadboard at this point
@CNLohr
@CNLohr Год назад
I feel like Ben Eater might have just been zapped in the back of his head.
@avejst
@avejst Год назад
Impressive
@CNLohr
@CNLohr Год назад
Thank you. But the real magic is in the Carmack Code.
@golarac6433
@golarac6433 Год назад
There's a whole library dedicated to generaring optimal ASCII patterns out of pixel graphics, its called aalib. You should try using it. There's also a very cool demo using it called BB
@CNLohr
@CNLohr Год назад
I have thought about using it, but it's all so much more complicated than the naive approach.
@golarac6433
@golarac6433 Год назад
@@CNLohr I never used it but I was under the impression that it just takes a pointer to a framebuffer and outputs the characters so it would be perfect for this. In fact you can already run doom on aalib in a way, because SDL supports it as a video driver, so chocolate doom using SDL can run in a terminal using aalib. Great channel btw, ive watched a bunch of your videos recently :)
@BastetFurry
@BastetFurry Год назад
Now i am intrigued what performance would be if we used an RP2040 with some external serial RAM and VT100 emulation video output on VGA. Would the system still be usable as a tiny cheap Linux PC or not? EDIT: Defining usable, snappy enough that some editor like Tilde and tools like Midnight are not laggy to use, my benchmark would be some XT class machine running MSDOS with the QuickIDE and Norton Commander. Stuff takes some time to load but when up is snappy to use.
@neozeed8139
@neozeed8139 Год назад
there is esp32 ports... so I dont see why not
@CNLohr
@CNLohr Год назад
I agree, it should work.
@user-jp1qt8ut3s
@user-jp1qt8ut3s Год назад
Cool! ❤️
@bitelaserkhalif
@bitelaserkhalif Год назад
Next: RISC-y Apple
@Anon.G
@Anon.G Год назад
This is so cool
@maze7_7
@maze7_7 Год назад
dude, you rule
@Biggestsonicfan
@Biggestsonicfan Год назад
Someday, I will put Doom on the Model2 arcade board. Intel 80960 Doom just sounds fun!
@CNLohr
@CNLohr Год назад
And quirky.
@SAckTheGoof
@SAckTheGoof Год назад
everything can run doom
@CNLohr
@CNLohr Год назад
google charles babbage's difference engine
@SAckTheGoof
@SAckTheGoof Год назад
@@CNLohr what
@bearwolffish
@bearwolffish Год назад
Very cool 👏🏽👏🏽
@CNLohr
@CNLohr Год назад
thanks
@slavsquatsuperstar
@slavsquatsuperstar Год назад
Next: Running Doom inside Doom
@CNLohr
@CNLohr Год назад
🤤
@juniorsilvabroadcast
@juniorsilvabroadcast Год назад
RISC-V can work with digital audio processing ?
@CNLohr
@CNLohr Год назад
It can. Though that matters more about the specific silicon surrounding the core.
@BeHappyTo
@BeHappyTo Год назад
Is there anyway to get AudioLink Mono Heavy font without installing AudioLink software?
@CNLohr
@CNLohr Год назад
audiolink.dev/
@unarei
@unarei Год назад
7:34 oh god that's the worst. I immediately thought "oh, a different language would catch that" but would it? u32s can always be implicitly cast to i64s because an i64 can hold every possible u32 value-so no, it wouldn't. I guess one thing that could prevent that from being an issue is storing registers as as a union{u32, i32} instead, that way you have to select one each time. especially since so many riscv instructions are signed only or support signed ints. not sure though.
@rklein
@rklein Год назад
Has anyone found a way to run Doom on one of those digital fireplaces? Just think of all the romantic nights everyone will have!
@CNLohr
@CNLohr Год назад
Are any of them controlled with individually addressable LEDs?
@bobthecannibal1
@bobthecannibal1 Год назад
But can it run Crysis?
@JamesTDG
@JamesTDG Год назад
This is just 1337doom with extra steps, lol
@CNLohr
@CNLohr Год назад
I suppose so.
@viti95
@viti95 Год назад
If you want to make it look much better, use any 16 color wad as Doom palette is too oscure, and avoid using any text characters, half block characters are way better
@CNLohr
@CNLohr Год назад
Someone's already added support for 256-color terminals.
@Bp1033
@Bp1033 Год назад
most terminals support sixel as a graphics mode, libsixel might be a good method to get a 320x200 postage stamp.
@CNLohr
@CNLohr Год назад
If you're interested, you could totes make a PR.
@Bp1033
@Bp1033 Год назад
where should I start looking to find where it makes graphics into ascii?
@kayakMike1000
@kayakMike1000 Год назад
Tons of errors in that compile, man... Did you lint that code?
@CNLohr
@CNLohr Год назад
I play it fast and loose.
@Cneq
@Cneq Год назад
You should make a video on how to learn shaders in VRChat. I'm a computer science student and I really want to experiment with shaders [already been building with avatars/worlds] but I can't find any good resources on how to get started with shaders. I'm sure a lot of people would appreciate this from someone with your level of experience.
@CNLohr
@CNLohr Год назад
I have thought about this a lot. And talked to others in the community. But I haven't had the "hook" to make it happen. It's a lot of work to make videos, and unless I'm relatively confident they'll get a lot of views it's hard to make them.
@Blackerer
@Blackerer Год назад
Heh, this reminds me, when I used to draw graphics in Pascals by writing to B800:0000 (or what was the magic number) with ascii. Easy to do Tetris, Sokoban, or Snake. Really nice job with the emulator and bughunting.
@CNLohr
@CNLohr Год назад
Depends on the video mode. 0xA000:0000 or somewhere in the B's.
@T3sl4
@T3sl4 Год назад
Yup! Or, I grew up with an 8086 with built-in 128k EGA. You can write to all of 0xA000:0 to 0xB000:FFFF, 640x350 at 16 colors, two pages. What luxury! Or should I say &HA000 because I was mostly poking around in QBASIC at the time (yuck!). Oh but it was so weird, with the bitplanes. Took me a while to find out you need to talk to the graphics registers too, to draw any colors.
@Blackerer
@Blackerer Год назад
@@CNLohr yeh, I think it was the 80x?? mode? I remember having to switch. Ive just checked B800 is really the magic memory address in pascal. Im probably just remembering 16bit version. So just B800.
@guest7329
@guest7329 Год назад
Im doing my big boy riscv64gc mmu emulator for 2 years. Right now putting jit into it. It's very cool that you can boot linux without mmu
@CNLohr
@CNLohr Год назад
I am curious what kind of performance factor you see.
@guest7329
@guest7329 Год назад
@@CNLohr it's interpreter, but with basic block caching (so I didn't parse instruction every time) and mmu caching(tlb's), so performance varies a lot when linux starts to flush caches. Best case is softpipe rendering glgears 100 million instructions per second, but it drops to 20mips on systemd startup. Also, I my rootfs is nfs, for ease of development
@guest7329
@guest7329 Год назад
@@CNLohr also, it depends on how close to so spec you wanted to be. For example: every target of branch instructions should be 4 bytes aligned (2 bytes if C-ext supported)
@InfoSecDojo
@InfoSecDojo Год назад
for how long you've been coding tho? i mean your XP 🤔🤔
@CNLohr
@CNLohr Год назад
Almost 30 years.
@jaciroscar
@jaciroscar Год назад
What font is this? Beautiful
@CNLohr
@CNLohr Год назад
audiolink.dev/
@DankyMankey
@DankyMankey Год назад
Or you can get the 8BitGuy to do Pescii Robots on it
@adissentingopinion848
@adissentingopinion848 Год назад
3:02 Ah, back to BASICs. Screw OpenGL, we're poking now.
@CNLohr
@CNLohr Год назад
bingo :figerguns:
@guest7329
@guest7329 Год назад
You can emulate A extension if code runs in Machine mode and interrupts are disabled. In lower privilege modes atomicity can't be guarantied because of M mode interrupts
@CNLohr
@CNLohr Год назад
Interesting point. I hadn't considered that. Are you pointing out that the atomicity of the load/store semantics will cause an issue if I am not properly emulating the memory slot? Do you mind opening a new github issue for this and explaining?
@guest7329
@guest7329 Год назад
​@@CNLohr not quite, i send you PR
@MostlyPennyCat
@MostlyPennyCat Год назад
Needs a Teletext version for Prestel terminals.
@CNLohr
@CNLohr Год назад
Sounds like a PR you should make!
@MostlyPennyCat
@MostlyPennyCat Год назад
@@CNLohr This also reminds me of the world cup ASCII telnet server from 2006. I don't know the Doom source code, which file contains your code for choosing the characters and letters for a given block of pixels?
@emilyy-dev
@emilyy-dev Год назад
Next up: but can it run Crysis?
@CNLohr
@CNLohr Год назад
Make it open source.
@justanormalperson
@justanormalperson Год назад
nice :)
@werewebro
@werewebro 4 месяца назад
awesome!!!
@CNLohr
@CNLohr Месяц назад
Or maybe a class C amp. Never got a chance to try it though.
@proxy1035
@proxy1035 Год назад
oooh, emDOOM looks really interesting. but the 5MB WAD file seems like a major bottleneck for most if not all Microcontrollers (what low to mid tier MCUs have >5MB of flash?) and Von Neumann based DIY systems (68k, 65c816, Z80-ish, etc) where Program and Data share the same memory. i wonder how small the WAD would be if you cut everything except the first episode, or even just everything except E1M1 and all required graphics for it.
@CNLohr
@CNLohr Год назад
It would likely be a lot better sized, and if you shrunk down things like the boot screen, etc. I think it would help.
@proxy1035
@proxy1035 Год назад
@@CNLohr i grabbed the full Ultimate DOOM IWAD and used SLADE to remove all music and sound effects, all levels except for episode 1, and all unused graphics. the total file size is down from 11MB to 7MB. (where did you get 5MB mentioned in the github from?) the main bulk are the graphics (~6.1MB). reducing all of them from 256 to 2 colors would cut the size down a huge amount... but then the game would be completely monochrome. so maybe halfing the resolution and going from 256 colors to 16 would be a better idea. in theory it should have the same decrease in file size as going monochrome. or maybe some basic file IO would be better to not have to load all levels and graphics into RAM at the same time
@CatzRuleGaming
@CatzRuleGaming Год назад
Unless it can run Doom, it's a bad system
@ForgottenSage
@ForgottenSage Год назад
Man can it run Bad Apple!!
@CNLohr
@CNLohr Год назад
Maybe sometime.
@sorin.n
@sorin.n Год назад
You're a god!
@thiagofalencar
@thiagofalencar Год назад
I searched for the font family "AudioLink Mono Heavy" on the internet, but I didn't found. Someone can help me to find this amazing terminal font?
@CNLohr
@CNLohr Год назад
audiolink.dev
@thiagofalencar
@thiagofalencar Год назад
​@@CNLohr Thank you so much! I really liked these fonts! ❤
@CNLohr
@CNLohr Год назад
@@thiagofalencar llealloo is the author, not me!!
@Primeliki
@Primeliki 3 месяца назад
Can doom run it?
@CNLohr
@CNLohr Месяц назад
Is doom touring complete?
@Mainyehc
@Mainyehc Год назад
But can it run Crysis? 🤔
@japroz
@japroz Год назад
Your content is soooo good. Please please make a tutorial on how to write a RISCV emulator in C. Surprisingly, there's no good video tutorial on it
@CNLohr
@CNLohr Год назад
I put a link to the source code so you can look yourself. I tried to make it basic and document it.
@jgfjfgjfhjf
@jgfjfgjfhjf Год назад
I understood some of the words you said
@CNLohr
@CNLohr Год назад
google is your friend. My goal in my videos is to send you down rabbit holes and to get you to start learning!
@Mkananoja
@Mkananoja Год назад
it now runs doom, but will it run skyrim? or crysis?
@kanjdostuff
@kanjdostuff Год назад
but can it run bad apple?
@CNLohr
@CNLohr Год назад
Maybe some day.
@slash213
@slash213 Год назад
Is this some kind of dyslexia-friendly font? If it's just a stylistic choice, it certainly is unusual.
@CNLohr
@CNLohr Год назад
It's just AudioLink Console audiolink.dev
@slash213
@slash213 Год назад
​@@CNLohr don't take this the wrong way, but I would shoot myself if this was the only terminal font available. Or switch jobs I guess The font is obviously no barrier to you, I was just curious if it's a necessity
@BryanChance
@BryanChance Год назад
I think the Cyrix x86 processor went away because it couldn't handle Doom. LOL
@CNLohr
@CNLohr Год назад
In reflection, it wouldn't have been very difficult to make Doom run on it.
@1pcfred
@1pcfred Год назад
Cyrix ran Doom great. It couldn't run Quake though.
@onedeadsaint
@onedeadsaint Год назад
I know some of these words.
@CNLohr
@CNLohr Год назад
Google is your friend! My goal in my videos is to send you down rabbit holes and to get you to start learning!
@KaziiTheAvali_inactive
@KaziiTheAvali_inactive Год назад
cannon player XD
@AJB2K3
@AJB2K3 Год назад
Cool!
@MonsieurNarlan
@MonsieurNarlan Год назад
Impostor! What about Crisis?
@CNLohr
@CNLohr Год назад
Get me an open source version and we shall see.
@chronosVR.2763
@chronosVR.2763 Год назад
2:27 this works with python on windows too
@CNLohr
@CNLohr Год назад
yes it does
@sparky4insano
@sparky4insano Год назад
Get this to run on a 286. Srsly. 286s CANT run doom
@CNLohr
@CNLohr Год назад
Some things just don't need to be done.
@hezuikn
@hezuikn Год назад
its a feature