Download Demo/Asm/AsmAndC3.txt from hschumann2/TempleOS-Source-Code: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Demo/Asm/AsmAndC3.txt
- Command line
-
hf download hf://datasets/hschumann2/TempleOS-Source-Code/Demo/Asm/AsmAndC3.txt
-
curl -L -o AsmAndC3.txt https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Demo/Asm/AsmAndC3.txt
489 Bytes
| /*Asm labels can only be defined once | |
| in a task. <F5> will spawn a new task | |
| each time, so you don't get redefine | |
| error, like when repeatedly #including | |
| it from the cmd line. | |
| */ | |
| U0 AsmAndC3() | |
| { | |
| I64 i; | |
| for (i=0;i<3;i++) { | |
| "Meaning of life:"; | |
| MOV AL,0x41 | |
| STC | |
| ADC AL,0 //Round-about way to make the not-special constant, 0x42. | |
| CALL PUT_HEX_U8 | |
| MOV RCX,cnts.time_stamp_freq>>5 //JIT Const. Simple delay loop. | |
| @@1: LOOP @@1 | |
| '\n'; | |
| } | |
| } | |
| AsmAndC3; | |