pmemmanager.asm
资源名称:tizos.rar [点击查看]
上传用户:qddsws
上传日期:2022-06-22
资源大小:723k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- BITS 32
- AVAIL_RAM equ 0x18000
- UP16MM_STACK_BASE equ 0xffbffffe
- UP16MM_STACK_POINTER dd 0xffbffffe
- UP16MM_STACK_LIMIT dd 0xffb10000 ;;NO!
- UP16MM_STACK_COUNT dw 0x00
- [GLOBAL push_up16mm]
- push_up16mm: ;; A eax hi ha la double word que posem a la pila
- dec dword [UP16MM_STACK_POINTER]
- dec dword [UP16MM_STACK_POINTER]
- dec dword [UP16MM_STACK_POINTER]
- dec dword [UP16MM_STACK_POINTER]
- inc word [UP16MM_STACK_COUNT]
- mov ebx,[UP16MM_STACK_POINTER]
- mov [ebx],eax
- ret
- [GLOBAL pop_up16mm]
- pop_up16mm:
- mov ebx,[UP16MM_STACK_POINTER]
- mov eax,[ebx]
- inc dword [UP16MM_STACK_POINTER]
- inc dword [UP16MM_STACK_POINTER]
- inc dword [UP16MM_STACK_POINTER]
- inc dword [UP16MM_STACK_POINTER]
- dec word [UP16MM_STACK_COUNT]
- ret
- ;add eax,1024
- ;shl eax,12
- ;mov [eax],ebx
- ;mov eax,0xfafafafa
- ret