conversion to new assembler format
This commit is contained in:
		
							parent
							
								
									8f27f92269
								
							
						
					
					
						commit
						a3b0f08d57
					
				
					 50 changed files with 312 additions and 64 deletions
				
			
		|  | @ -1,6 +1,11 @@ | |||
| .define __exit
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern __exit
 | ||||
| .text | ||||
| .sect .text | ||||
| __exit: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _access
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _access
 | ||||
| .text | ||||
| .sect .text | ||||
| _access: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _acct
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _acct
 | ||||
| .text | ||||
| .sect .text | ||||
| _acct: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _alarm
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _alarm
 | ||||
| .text | ||||
| .sect .text | ||||
| _alarm: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _brk
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _brk
 | ||||
| .text | ||||
| .sect .text | ||||
| _brk: | ||||
| enter[], 0 | ||||
| movd 8(fp),@.reghp
 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _chdir
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _chdir
 | ||||
| .text | ||||
| .sect .text | ||||
| _chdir: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _chmod
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _chmod
 | ||||
| .text | ||||
| .sect .text | ||||
| _chmod: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _chown
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _chown
 | ||||
| .text | ||||
| .sect .text | ||||
| _chown: | ||||
| enter[], 0 | ||||
| addr 8(fp),r7 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _chroot
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _chroot
 | ||||
| .text | ||||
| .sect .text | ||||
| _chroot: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define __cleanup
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern __cleanup
 | ||||
| .text | ||||
| .sect .text | ||||
| __cleanup: | ||||
| enter[], 0 | ||||
| exit [] | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _close
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _close
 | ||||
| .text | ||||
| .sect .text | ||||
| _close: | ||||
| movd 0, r4 | ||||
| ret 0 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _creat
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _creat
 | ||||
| .text | ||||
| .sect .text | ||||
| _creat: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _dup
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _dup
 | ||||
| .text | ||||
| .sect .text | ||||
| _dup: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _dup2
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _dup2
 | ||||
| .text | ||||
| .sect .text | ||||
| _dup2: | ||||
| enter[], 0 | ||||
| movd 8(fp),r7 | ||||
|  |  | |||
|  | @ -1,5 +1,10 @@ | |||
| .define _errno
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _errno
 | ||||
| .bss | ||||
| .sect .bss | ||||
| _errno:.space	4
 | ||||
| .text | ||||
| .sect .text | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _execl
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _execl
 | ||||
| .text | ||||
| .sect .text | ||||
| _execl: | ||||
| enter[], 0 | ||||
| movd @__penvp,tos
 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _execle
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _execle
 | ||||
| .text | ||||
| .sect .text | ||||
| _execle: | ||||
| enter[], 0 | ||||
| addr 12(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _execv
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _execv
 | ||||
| .text | ||||
| .sect .text | ||||
| _execv: | ||||
| enter[], 0 | ||||
| movd @__penvp,tos
 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _execve
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _execve
 | ||||
| .text | ||||
| .sect .text | ||||
| _execve: | ||||
| enter[], 0 | ||||
| addr 8(fp),r7 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _exit
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _exit
 | ||||
| .text | ||||
| .sect .text | ||||
| _exit: | ||||
| enter[], 0 | ||||
| jsr @__cleanup
 | ||||
|  |  | |||
|  | @ -1,10 +1,15 @@ | |||
| .define _fork
 | ||||
| .define _par_uid
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _par_uid
 | ||||
| .bss | ||||
| .sect .bss | ||||
| _par_uid:.space	4
 | ||||
| .extern _fork
 | ||||
| .text | ||||
| .sect .text | ||||
| _fork: | ||||
| enter[], 0 | ||||
| movd 2,tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _fstat
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _fstat
 | ||||
| .text | ||||
| .sect .text | ||||
| _fstat: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _ftime
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _ftime
 | ||||
| .text | ||||
| .sect .text | ||||
| _ftime: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _getegid
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _getegid
 | ||||
| .text | ||||
| .sect .text | ||||
| _getegid: | ||||
| enter[], 0 | ||||
| movd 47,tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _geteuid
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _geteuid
 | ||||
| .text | ||||
| .sect .text | ||||
| _geteuid: | ||||
| enter[], 0 | ||||
| movd 24,tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _getgid
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _getgid
 | ||||
| .text | ||||
| .sect .text | ||||
| _getgid: | ||||
| enter[], 0 | ||||
| movd 47,tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _getpid
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _getpid
 | ||||
| .text | ||||
| .sect .text | ||||
| _getpid: | ||||
| enter[], 0 | ||||
| movd 20,tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _getuid
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _getuid
 | ||||
| .text | ||||
| .sect .text | ||||
| _getuid: | ||||
| enter[], 0 | ||||
| movd 24,tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _gtty
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _gtty
 | ||||
| .text | ||||
| .sect .text | ||||
| _gtty: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
|  | @ -2,16 +2,19 @@ | |||
| .define .ignmask, .trpreg | ||||
| .define .stop | ||||
| .define ERANGE,EILLINS,ECASE | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| 
 | ||||
| base	= 0x10000 | ||||
| topmem	= 0xFFFFFF | ||||
| 
 | ||||
| ERANGE 	= 1 | ||||
| EILLINS	= 18 | ||||
| ECASE	= 20 | ||||
| 
 | ||||
| 	.base base
 | ||||
| 	.text | ||||
| 	.sect .text | ||||
| 
 | ||||
| 	movd begbss, r7 | ||||
| 	movd endbss, r6 | ||||
|  | @ -30,21 +33,21 @@ ECASE	= 20 | |||
| 	jsr @.putchar
 | ||||
| 	bpt | ||||
| 
 | ||||
| .bss | ||||
| .sect .bss | ||||
| begbss: | ||||
| .data | ||||
| .sect .data | ||||
| hol0: | ||||
| 	.long 0
 | ||||
| 	.long 0
 | ||||
| 	.data4 0
 | ||||
| 	.data4 0
 | ||||
| argv: | ||||
| 	.long 3f
 | ||||
| 	.data4 3f
 | ||||
| envp: | ||||
| 	.long 0
 | ||||
| 	.data4 0
 | ||||
| 3: | ||||
| 	.asciz 'PROGRAM' | ||||
| .reghp: | ||||
| 	.long endbss
 | ||||
| 	.data4 endbss
 | ||||
| .ignmask: | ||||
| 	.short 0
 | ||||
| 	.data2 0
 | ||||
| .trpreg: | ||||
| 	.long 0
 | ||||
| 	.data4 0
 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _ioctl
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _ioctl
 | ||||
| .text | ||||
| .sect .text | ||||
| _ioctl: | ||||
| enter[], 0 | ||||
| addr 8(fp),r7 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _kill
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _kill
 | ||||
| .text | ||||
| .sect .text | ||||
| _kill: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _link
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _link
 | ||||
| .text | ||||
| .sect .text | ||||
| _link: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _lock
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _lock
 | ||||
| .text | ||||
| .sect .text | ||||
| _lock: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _lseek
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _lseek
 | ||||
| .text | ||||
| .sect .text | ||||
| _lseek: | ||||
| enter[], 0 | ||||
| addr 8(fp),r7 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _mknod
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _mknod
 | ||||
| .text | ||||
| .sect .text | ||||
| _mknod: | ||||
| enter[], 0 | ||||
| addr 8(fp),r7 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _mount
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _mount
 | ||||
| .text | ||||
| .sect .text | ||||
| _mount: | ||||
| enter[], 0 | ||||
| addr 8(fp),r7 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _mpxcall
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _mpxcall
 | ||||
| .text | ||||
| .sect .text | ||||
| _mpxcall: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _nice
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _nice
 | ||||
| .text | ||||
| .sect .text | ||||
| _nice: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _open
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _open
 | ||||
| .text | ||||
| .sect .text | ||||
| _open: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _pause
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _pause
 | ||||
| .text | ||||
| .sect .text | ||||
| _pause: | ||||
| enter[], 0 | ||||
| movd 29,tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _pipe
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _pipe
 | ||||
| .text | ||||
| .sect .text | ||||
| _pipe: | ||||
| enter[], 0 | ||||
| movd 42,tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _profil
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _profil
 | ||||
| .text | ||||
| .sect .text | ||||
| _profil: | ||||
| enter[], 0 | ||||
| addr 8(fp),r7 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _ptrace
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _ptrace
 | ||||
| .text | ||||
| .sect .text | ||||
| _ptrace: | ||||
| enter[], 0 | ||||
| xord @_errno,@_errno
 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _read
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _read
 | ||||
| .text | ||||
| .sect .text | ||||
| _read: | ||||
| enter[], 0 | ||||
| save [r0,r1,r2,r3] | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _sbrk
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _sbrk
 | ||||
| .text | ||||
| .sect .text | ||||
| _sbrk: | ||||
| enter[], 0 | ||||
| movd @.reghp,r7
 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _setgid
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _setgid
 | ||||
| .text | ||||
| .sect .text | ||||
| _setgid: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,9 +1,14 @@ | |||
| .define __setsig
 | ||||
| .bss | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .sect .bss | ||||
| _save:.space	4
 | ||||
| _trf:.space	4
 | ||||
| .extern __setsig
 | ||||
| .text | ||||
| .sect .text | ||||
| __setsig: | ||||
| enter[], 0 | ||||
| movd 8(fp),@_trf
 | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _setuid
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _setuid
 | ||||
| .text | ||||
| .sect .text | ||||
| _setuid: | ||||
| enter[], 0 | ||||
| movd 8(fp),tos | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| .define _stat
 | ||||
| .sect .text | ||||
| .sect .rom | ||||
| .sect .data | ||||
| .sect .bss | ||||
| .sect .text | ||||
| .extern _stat
 | ||||
| .text | ||||
| .sect .text | ||||
| _stat: | ||||
| enter[], 0 | ||||
| movd 12(fp),tos | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue