Added EXIT, WRITE and BRK entry point
This commit is contained in:
		
							parent
							
								
									f86c403a53
								
							
						
					
					
						commit
						50f571bf2b
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		|  | @ -3,6 +3,7 @@ | ||||||
| .define  LINO_AD,FILN_AD | .define  LINO_AD,FILN_AD | ||||||
| .define  ERANGE,ESET,EHEAP,EILLINS,ECASE | .define  ERANGE,ESET,EHEAP,EILLINS,ECASE | ||||||
| .define  hol0,trppc~,trpim~,reghp~,.limhp | .define  hol0,trppc~,trpim~,reghp~,.limhp | ||||||
|  | .define EXIT,WRITE,BRK | ||||||
| ! $Header$ | ! $Header$ | ||||||
| 
 | 
 | ||||||
| #define float 1 | #define float 1 | ||||||
|  | @ -45,11 +46,15 @@ ECASE   = 024 | ||||||
| 1: | 1: | ||||||
| 	mov     r0,4(sp) | 	mov     r0,4(sp) | ||||||
| 	jsr     pc,__m_a_i_n | 	jsr     pc,__m_a_i_n | ||||||
| ! next two lines for as long as tail needs printf | 	mov	r0,-(sp) | ||||||
| !	mov     r0,-(sp) | EXIT: | ||||||
| !	jsr     pc,*$_exit | 	jsr	pc,__exit | ||||||
| 	sys     1 | 	sys     1 | ||||||
| 
 | 
 | ||||||
|  | WRITE:	jmp	__write | ||||||
|  | 
 | ||||||
|  | BRK:	jmp	__brk | ||||||
|  | 
 | ||||||
| 	.sect .data | 	.sect .data | ||||||
| hol0:   .data2 0,0     ! line no | hol0:   .data2 0,0     ! line no | ||||||
| 	.data2 0,0     ! file | 	.data2 0,0     ! file | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue