Commit Graph
100 Commits
Author SHA1 Message Date
christoph 40108cdacc add constexpr 2022-07-24 21:47:47 +02:00
christoph 6481bae5f6 merged cleanup 2022-07-24 21:12:31 +02:00
christoph 5ff3d72bfd remove unnecessary checks 2022-07-24 21:12:04 +02:00
christoph b9477f76ab nullptr instead of 0 2022-07-24 16:55:53 +02:00
christoph 18e0a666c8 remove logger from globals, use static 2022-07-24 16:55:09 +02:00
christoph 0d109727ac reformat + static const ioports 2022-07-24 16:54:51 +02:00
christoph e1eac41853 reformat 2022-07-24 16:51:16 +02:00
christoph a15e1d9fd4 reformat 2022-07-24 16:46:02 +02:00
christoph 3546cba4ea reformat 2022-07-24 15:58:17 +02:00
christoph 1572590c33 reformat 2022-07-24 15:58:03 +02:00
christoph afa2e67fd4 reformat 2022-07-24 15:57:47 +02:00
christoph e9b3da9fe4 disable identifier length warning 2022-07-24 15:55:14 +02:00
christoph 319fb25ae1 cleanup some vbe stuff 2022-07-24 14:13:59 +02:00
christoph adbc87c680 add clion to flake.nix 2022-07-24 14:13:40 +02:00
christoph a6ee16eade disable magic number checks 2022-07-24 14:13:21 +02:00
christoph aaa762d70e initialize for index variable 2022-07-24 02:39:49 +02:00
christoph 3034c4d450 fix cgastream color but (flush erased all colors) 2022-07-24 02:39:36 +02:00
christoph 5396d419ee comment 2022-07-24 02:39:28 +02:00
christoph a00a93d157 better exit error message 2022-07-24 02:27:15 +02:00
christoph f291938bfc make qemu-stdio to default 2022-07-24 02:24:06 +02:00
christoph 3aec6243ab fix vector demo print (no longer copies) 2022-07-24 02:23:01 +02:00
christoph b0b6ec13dc allow vector to be lazy init if alloc not avail 2022-07-24 02:22:43 +02:00
christoph a0fd7ea1a4 add move/copy constructors/assignment operators 2022-07-24 01:57:41 +02:00
christoph b88ca2d9a4 list extra demos in menu 2022-07-24 01:38:53 +02:00
christoph 85b31ecb9a comment 2022-07-24 01:37:04 +02:00
christoph 6bf7c5e5a8 readme update 2022-07-24 01:35:42 +02:00
christoph adae600809 add string demo 2022-07-24 01:35:34 +02:00
christoph 281228b6be fix string move constructor/assignment + additions 2022-07-24 01:35:21 +02:00
christoph d9b86355c7 remove <cstddef> and NULLs (use nullptr) 2022-07-24 00:40:51 +02:00
christoph e4469e51b2 cleanup 2022-07-24 00:33:14 +02:00
christoph 605d4e8c8d switch cpu methods to static 2022-07-24 00:29:21 +02:00
christoph a5c14da0de cleanup pit 2022-07-24 00:22:34 +02:00
christoph 3538969d94 cleanaup keyboard 2022-07-24 00:22:27 +02:00
christoph be56c76d81 cleanup key 2022-07-24 00:18:02 +02:00
christoph 26912fa041 cleanup cgastream 2022-07-24 00:16:35 +02:00
christoph 1f62ba8635 cga cleanup 2022-07-24 00:12:59 +02:00
christoph 186dc8779b cleanup 2022-07-24 00:08:32 +02:00
christoph 520445b66e add overloads for bse::string 2022-07-24 00:08:22 +02:00
christoph 4aa6d089ca allow to retrieve bse::array buffer address 2022-07-24 00:08:00 +02:00
christoph afd5a9599d mark const stuff const 2022-07-24 00:07:45 +02:00
christoph 1c87110b70 implement basic dynamic string 2022-07-24 00:07:21 +02:00
christoph 65ae4e139b add min/max to Math.h 2022-07-24 00:07:10 +02:00
christoph 3b69ffc82a clean cgastream 2022-07-23 22:46:09 +02:00
christoph ddad13defa clean outstream 2022-07-23 22:46:03 +02:00
christoph 226a247043 cleanup cga 2022-07-23 21:51:29 +02:00
christoph 94cc244868 rename Iterator to iterator 2022-07-23 21:38:16 +02:00
christoph c95361552a rename Vector to vector 2022-07-23 21:37:00 +02:00
christoph c8db2c8878 rename Array to array 2022-07-23 21:32:51 +02:00
christoph 1788df7fad comment 2022-07-23 21:06:59 +02:00
christoph ad2efb2f64 readme 2022-07-23 18:51:15 +02:00
christoph 70876f1a06 use the stack for regs in thread_switch 2022-07-23 18:40:16 +02:00
christoph cd26464052 add new asm which doesn't work yet 2022-07-23 18:27:44 +02:00
christoph 55fdf2d493 change thread switch args 2022-07-23 18:27:25 +02:00
christoph 9a3458e56a remove old queue code 2022-07-23 15:34:08 +02:00
christoph 147c106791 Merge branch 'main' into thread.asm_change 2022-07-23 15:23:55 +02:00
christoph 18395f8eff readme 2022-07-23 14:53:32 +02:00
christoph 3451dc8ce0 remove register keyword 2022-07-23 14:53:25 +02:00
christoph 3bdad54280 force cast ioport offset addressing to u_short 2022-07-23 14:34:58 +02:00
christoph 33e5ccccd7 untrack tools/build 2022-07-23 14:33:51 +02:00
christoph 50d50e4f02 rename lib 2022-07-23 14:33:23 +02:00
christoph b777891d37 rename extraflags to gccflags 2022-07-23 14:33:15 +02:00
christoph 3f8ff439a0 Revert "add own bse::move"
This reverts commit 72b99990b6.
2022-07-23 14:32:07 +02:00
christoph c658d55fe6 add ioport cast to unsigned short (for offsetting) 2022-07-23 14:28:57 +02:00
christoph d83df8c180 rename extraflags to gccflags 2022-07-23 14:28:46 +02:00
christoph a70f8ae51f rename lib 2022-07-23 13:38:47 +02:00
christoph 7f34f80a8c use bse::move 2022-07-23 13:37:41 +02:00
christoph 72b99990b6 add own bse::move 2022-07-23 13:37:35 +02:00
christoph a56dbb316f rename lib 2022-07-23 13:37:28 +02:00
christoph 15ded9c02c remove cstddef 2022-07-23 13:19:35 +02:00
christoph 647021d434 remove cstddef 2022-07-23 13:18:08 +02:00
christoph fe648cc49c change the assembly to use push and pop 2022-07-23 13:15:57 +02:00
christoph 2d1c21584c update 2022-07-23 13:15:48 +02:00
christoph 840c775ff9 remove old thread code (state, inc...) 2022-07-23 13:14:42 +02:00
christoph dc79b6595c thread.cc 2022-07-23 02:11:52 +02:00
christoph 17baf82332 comments 2022-07-23 01:49:05 +02:00
christoph 8b40cb1802 switch threadstate to esp int 2022-07-23 01:48:52 +02:00
christoph e143733b00 static logger 2022-07-23 00:20:44 +02:00
christoph bd95c02a08 use static logger 2022-07-22 23:32:46 +02:00
christoph ec09b0e6d2 make logger static and add name wrapper 2022-07-22 23:32:36 +02:00
christoph 60a01461b0 comments 2022-07-22 22:34:52 +02:00
christoph 9b6e84641c readme 2022-07-22 22:24:26 +02:00
christoph 1b7d8118fe comments/readme 2022-07-22 22:00:56 +02:00
christoph adeaaa6edd update demos for nice_kill 2022-07-22 21:39:22 +02:00
christoph 4e584546a0 comment 2022-07-22 21:39:16 +02:00
christoph db476093c7 add possibility to ask thread to suicide itself 2022-07-22 21:38:56 +02:00
christoph 16d7ae071d add name + running (nice_kill) to threads 2022-07-22 21:38:43 +02:00
christoph 3c6f6dd009 add Vector::reserve function 2022-07-22 20:45:52 +02:00
christoph 56eec2d766 disable sched log 2022-07-22 20:45:36 +02:00
christoph 4eeac40bb7 fix scheduler bug (memory req before alloc init) 2022-07-22 20:44:56 +02:00
christoph 061fa5db57 dealloc memory when exiting vesa mode 2022-07-22 20:44:35 +02:00
christoph cde3967961 fix semaphore bug (preempt before block/deblock) 2022-07-22 18:13:30 +02:00
christoph 43477834fc switch back to cpu.enable_int() from lock/unlock 2022-07-22 18:13:13 +02:00
christoph e56e76ea4e add semaphore to cga_stream + use it in demos 2022-07-22 18:12:56 +02:00
christoph e3dcadcc3c add debug get() to iterator 2022-07-22 18:12:28 +02:00
christoph b3c6c354c6 remove logger from vector 2022-07-22 18:12:17 +02:00
christoph e867107822 tools/build 2022-07-22 18:12:00 +02:00
christoph cf4a51b47a flake 2022-07-22 18:11:56 +02:00
christoph 87801e4eb2 move .clang-* 2022-07-22 18:11:31 +02:00
christoph 104540a22e log 2022-07-22 02:56:30 +02:00
christoph 8612587e65 remove semaphore from cga_stream 2022-07-22 02:56:14 +02:00