files
Table/modules/display_w.asm
Mikhail Frolov b3981d174a Table: All editor code files have been added from the flash drive.
The start date of development is September 12, 2024.
2025-03-30 22:56:32 +05:00

48 lines
1.2 KiB
NASM
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

use32 ; ¢ª«îç¨âì 32-¡¨â­ë© ०¨¬  áᥬ¡«¥à 
org 0 ;  ¤à¥á æ¨ï á ­ã«ï
APP_HEADER:
db 'MENUET01' ; 8-¡ ©â­ë© ¨¤¥­â¨ä¨ª â®à MenuetOS
dd 1 ; ¢¥àá¨ï § £®«®¢ª  (1 «¨¡® 2, á¬. ¤®ª-î)
dd START ;  ¤à¥á ¯¥à¢®© ª®¬ ­¤ë
dd I_END ; à §¬¥à ¯à®£à ¬¬ë
dd MEM ; ª®«¨ç¥á⢮ ¯ ¬ïâ¨
dd STACKTOP ;  ¤à¥á ¢¥à設ë áâíª 
.cmdline:
dd DEF_CMDLINE ;  ¤à¥á ¡ãä¥à  ¤«ï ¯ à ¬¥â஢
dd 0 ; ¯®¤  ¤à¥á ­  ¯ãâì ª ä ©«ã
include "macros.inc"
; display_d -emul
; display_d
START:
mcall 68, 11
; init shared buffer
mcall 68, 22, SHARED_NAME, 16*2, 1
test eax, eax
jz exit
mov esi, DEF_CMDLINE
mov edi, eax
mov ecx, 16*2
@@:
dec ecx
js exit
movsb
cmp byte[esi - 1], 0
jne @b
mov byte[edi - 1], ' '
jmp @b
exit:
mcall -1
SHARED_NAME: db 'DISPLAY_16_2_D',0
DEF_CMDLINE:
rb 256
align 16
I_END:
rb 1024; one page
STACKTOP:
align 16
MEM: