diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-05-19 03:01:28 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-05-19 03:01:28 -0700 |
| commit | 03a53307353dafb19fd9c31e4573a91e4ab4d71f (patch) | |
| tree | 572ec4494f0605374ae0d131615aae4728a58954 /core.e | |
| parent | ebd8be68201201fd86fc4a4e4e0a535738af86bd (diff) | |
log-load-variable and label-keyword-alternate work now
yay :) Force-Push: yes Change-Id: Iae2e308ed8d786a9586bdc2583a6a9300282abae
Diffstat (limited to 'core.e')
| -rw-r--r-- | core.e | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core.e b/core.e index 0390812..8c14948 100644 --- a/core.e +++ b/core.e @@ -1180,3 +1180,20 @@ here ! ~ (input point, alignment byte count -- input point) : unpackalign align-size ; + +~ Development utilities +~ ~~~~~~~~~~~~~~~~~~~~~ + +~ This peforms the "hlt" instruction (Intel's mnemomic, short for "halt"), +~ which will cause the program to exit with a segmentation fault. If you're +~ running under a debugger, this is a convenient way to get execution to stop +~ at a certain point. +~ +~ It's called "crash" rather than "hlt" to distinguish it from the word +~ which outputs the instruction as machine code. + +: crash + [ here @ + hlt + here ! ] ;asm + |