⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kernel.bth

📁 OLPC项目中CPU代码源
💻 BTH
字号:
purpose: Load file for x86 Forth kernel\ See license at end of filecommand: &builder &thisbuild-now: \Tags  [compile] \ ; immediate: \NotTags  ;  immediate\ ' $report-name is include-hook	' noop is include-exit-hook  ' noop is include-hook		' noop is include-exit-hookwarning off	\ Turn OFF the warning messages: resident ;fload ${BP}/forth/kernel/conf16.fthfload ${BP}/forth/kernel/meta1.fthonly forth also meta also definitionsfload ${BP}/cpu/i8051/assem.fthonly forth also meta assembler also meta definitions: assembler  ( -- )  8051-assembler  ;only forth also meta also assembler definitionsfload ${BP}/forth/lib/loclabel.fth         \ Local label assembler feature\ : : : lastacf .name cr ;   \ Debugging toolfload ${BP}/cpu/i8051/target.fth           \ Target configurationfload ${BP}/forth/kernel/forward.fth       \ Metacompiler forward referencingfload ${BP}/forth/kernel/metacompile.fth   \ Metacompilerfload ${BP}/cpu/i8051/metainit.fth         \ Turn on the metacompiler\ always-headers  \ Don't omit any headerssometimes-headers  \ Omit headers according to headers/headerless\ Comment out the following lines when debugging-1  threshold  !	\ Turn OFF ALL debugging messageswarning-t  off  	\ Turn OFF target warning messages\ Uncomment the following line(s) for more debug output\ show? on  1 granularity !  540 threshold !\ warning-t onfload ${BP}/cpu/i8051/kerncode.fth         \ CPU-dependent Forth kernel[ifdef] notdef    \ This is the FirmWorks Forth kernel high-level code: \tagvoc ; immediate: \nottagvoc [compile] \ ; immediate\ fload ${BP}/forth/kernel/uservars.fth\ fload ${BP}/forth/kernel/double.fth\ \ : (d.)  (  d -- adr len )  tuck dabs <# #s rot sign #>  ;\ \ fload ${BP}/forth/kernel/dmuldiv.fth\ fload ${BP}/forth/lib/bitops.fth\ fload ${BP}/forth/lib/struct.fth\ fload ${BP}/forth/kernel/kernel.fth\ fload ${BP}/forth/kernel/sysio.fth\ fload ${BP}/forth/lib/dumballo.fth\ fload ${BP}/cpu/x86/syscall.fth\ fload ${BP}/cpu/x86/boot.fth\ fload ${BP}/forth/kernel/init.fth\ fload ${BP}/cpu/x86/finish.fth[then]' (do-literal) is do-literal\ Save the result to a filewriting kernel.imgorigin-t >hostaddr  here-t origin-t -  ofd @  fputsofd @ fclosewarning onhex\ LICENSE_BEGIN\ Copyright (c) 2007 FirmWorks\ \ Permission is hereby granted, free of charge, to any person obtaining\ a copy of this software and associated documentation files (the\ "Software"), to deal in the Software without restriction, including\ without limitation the rights to use, copy, modify, merge, publish,\ distribute, sublicense, and/or sell copies of the Software, and to\ permit persons to whom the Software is furnished to do so, subject to\ the following conditions:\ \ The above copyright notice and this permission notice shall be\ included in all copies or substantial portions of the Software.\ \ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\\ LICENSE_END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -