diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-05-01 23:37:40 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-05-01 23:37:50 +0200 |
| commit | 768821c68980968f7ab37ef71f4389c4fcee9235 (patch) | |
| tree | e675a1ac33318925c93bb98fb5f68935d56cf005 /boot/stage1.s | |
| parent | f3a8b2626aa5d541dfaf9c63a911e1893c0f4ba9 (diff) | |
| download | elna-768821c68980968f7ab37ef71f4389c4fcee9235.tar.gz | |
Create tokenization tables
Diffstat (limited to 'boot/stage1.s')
| -rw-r--r-- | boot/stage1.s | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/boot/stage1.s b/boot/stage1.s index e591e21..9b118d5 100644 --- a/boot/stage1.s +++ b/boot/stage1.s @@ -1896,11 +1896,6 @@ _main: sw s0, 0(sp) addi s0, sp, 8 - # Read the source from the standard input. - la a0, source_code - li a1, SOURCE_BUFFER_SIZE # Buffer size. - call _read_file - li s2, 1 # Epilogue. @@ -1912,7 +1907,13 @@ _main: # Entry point. .type _start, @function _start: - call _tokenizer_initialize + # Read the source from the standard input. + la a0, source_code + li a1, SOURCE_BUFFER_SIZE # Buffer size. + call _read_file + + mv a0, s1 + call _tokenize call _main call _compile |
