Wim
I'll do it for dos 😂
Mov dx,offset string mov ah,09h Int 21h Int 20h ??
Wim
Yes
Why in the world would anyone use your code on arduino if its only a scheduler on some os?
BinaryByter
Wim did it for me
Wim
Even running an os on it pretty much already is stupid?
BinaryByter
@ollirz
Wim
Wim did it for me
Lets do legacy bios!
Daniele°
Why in the world would anyone use your code on arduino if its only a scheduler on some os?
Because you want to use setup(){...} loop(){...} loop2(){...} loopN(){...} In your firmware
Wim
Mov ch,13h lodsb cbw xchg ax,cx int 10h
Daniele°
Arduino scheduler is not os dependent
olli
@ollirz
does not output "hello world"
BinaryByter
Mov ch,13h lodsb cbw xchg ax,cx int 10h
Legacy bios, wheres the push cs pop cx or whatever it was
Wim
Because you want to use setup(){...} loop(){...} loop2(){...} loopN(){...} In your firmware
Its a dedicated appliance mcu; its a waste of space running an os
BinaryByter
does not output "hello world"
okay, nvm, the challenge is undoable, you won
BinaryByter
I assume cs=ds
yes, sorry 😂
Wim
Its that i'm shopping, else i'd write direct memory too
Wim
really? No one noticed the pascal string approach?
BinaryByter
xD
Daniele°
Its a dedicated appliance mcu; its a waste of space running an os
in some situations it can simplify the code at the expense of a few clocks and a few bytes
Mihail
in some situations it can simplify the code at the expense of a few clocks and a few bytes
> simplify this whole setup and loop thing is pretty stupid imo
Daniele°
You can write a simple cooperative scheduler with One loop e One timer
Wim
I bet you run it on those siemens lego for wannabe engineer bricks?
Daniele°
You can write a simple cooperative scheduler with One loop e One timer
irq_timer(){ ++tick; } int main(){ while(1){ if( tick >= ticktask1 ){ ticktask1 = tick+nexttime; task(); } .... } }
Daniele°
After this you can learn a hybrid scheduer irq_timer(){ ++tick; if(tick>= blablabla){ taskpreemtive(); } } int main(){ while(1){ if( tick >= ticktask1 ){ ticktask1 = tick+nexttime; task(); } .... } }
Wim
And you don't see the issues in it?
Daniele°
With context switch you can write a Better cooperative scheduler or an preemptive scheduler. My porting of Arduino scheduler can run in both cases, but I wouldn't try to use a preemptive scheduler with the Arduino core 😂
Wim
Even from a c point of view?
Wim
Both are stupid on a mcu designed to drive microwaves and coffeemachines?
Wim
if it'd be doing ad/da the timer would screw up
Wim
Cooperative your whole loop would suck
Wim
And you even do it hll
Wim
While claiming its asm is simple?
Wim
What would you like to achieve? Mine bitcoin on a dishwasher?
BinaryByter
Wim
That shitty?
Daniele°
Both are stupid on a mcu designed to drive microwaves and coffeemachines?
coffee machines are becoming increasingly complex
BinaryByter
coffee machines are becoming increasingly complex
Is the coffee I get becoming increasingly better?
Daniele°
BinaryByter
You can request coffe over wifi
Umm... thank you, I just wanted coffee
Daniele°
You can display temperature from LCD touch display
Daniele°
I JUST WANTED COFFEE
You have a smartphone or a simple telephone because you Just wanted call?
Mihail
You can request coffe over wifi
can i get it over wifi too?
BinaryByter
actually, I don't do much more with my phone than texting and doing arm musculature
Daniele°
can i get it over wifi too?
Yes, and with telegram
Mihail
#ot
Ибраги́м
How long does it take to master C++? Hi Im a high school student that is considering being a programmator, since Im only 15 I still have some time to learn C++ until I start university, so my question is how long does it take to develop a skill level of C++ that you can be a programmator as a job. Sorry for bad English. https://redd.it/bpdfwu @r_cpp
BinaryByter
😂
Ибраги́м
Young padawan
BinaryByter
Old dinosaur?
Ибраги́м
C++ is like mother Russia
BinaryByter
it will come to invade your ram?
Ибраги́м
It may go off during cold war but always bounce back
BinaryByter
the only time a cold war happens in a computer is when the Computer is off
Dima
BinaryByter
I want to instant ban you
I oppose, he's entertaining
Dima
Kiddo
Prometheus
Prometheus
I oppose, he's entertaining
Everyone says that when I’m being dead serious lol
Ибраги́м
Ибраги́м
NOT!
BinaryByter
Do it!
I will instant unban
Ибраги́м
Dima
U drunk?!
He’s young padawan