Ubuntu 18.04
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
$ rustup target add wasm32-unknown-unknown
$ sudo apt install libssl-dev
$ cargo install wasm-bindgen-cli
Ubuntu 18.04
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
$ rustup target add wasm32-unknown-unknown
$ sudo apt install libssl-dev
$ cargo install wasm-bindgen-cli
| set enc=utf-8 | |
| source $VIMRUNTIME/delmenu.vim | |
| set langmenu=ja_jp.utf-8 | |
| source $VIMRUNTIME/menu.vim | |
| colorscheme evening | |
| set guifont=Myrica_M:h15 | |
| set guioptions-=T | |
| set guioptions-=r | |
| set guioptions-=R |
| #include <cstdio> | |
| #include <cstdlib> | |
| #include <regex> | |
| #include "../syscall.h" | |
| void DumpMem(uint64_t addr, int n) { | |
| char s[128]; | |
| auto p = reinterpret_cast<volatile uint64_t*>(addr); | |
| for (int i = 0; i < n - 1; i += 2) { | |
| sprintf(s, "%016lx: %016lx %016lx\n", |
QEMU にて MikanOS を起動させ,初期ターミナルにて「rpn 2 3 +」と入力しエンター。 画面に「app exited. ret = 5」と表示された後,いずれかのキーを入力すると MikanOS が再起動される(ブートローダーの処理からまた開始される)。
| aaa | |
| aad | |
| aam | |
| aas | |
| adc | |
| adcx | |
| add | |
| addpd | |
| addps | |
| addsd |
| sudo apt install zlib1g-dev libiberty-dev liblzma-dev | |
| cd ipxe/src | |
| make bin-x86_64-efi/ipxe.efi EMBED=../../ipxe_load.cfg |
| -nostdlibinc | |
| -I/home/uchan/osbook/devenv/x86_64-elf/include | |
| -I/home/uchan/osbook/devenv/x86_64-elf/include/c++/v1 | |
| -I. | |
| -D__ELF__ | |
| -D_LIBCPP_HAS_NO_THREADS | |
| -O2 | |
| -Wall | |
| -g | |
| --target=x86_64-elf |
| #!/usr/bin/python3 | |
| from http.server import HTTPServer, BaseHTTPRequestHandler | |
| from urllib.parse import urlparse, parse_qs | |
| calculate_funcs = { | |
| 'add': lambda x, y: x + y, | |
| 'sub': lambda x, y: x - y, | |
| 'mul': lambda x, y: x * y, |
| #!/usr/bin/python3 | |
| from http.server import HTTPServer, BaseHTTPRequestHandler | |
| from urllib.parse import urlparse | |
| class RequestHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): | |
| parsed_path = urlparse(self.path) | |
| path_elements = parsed_path.path.split('/')[1:] |