Browse Source

working timer writing 'tick' every 5 secs

Phil 4 years ago
parent
commit
b3e84b3d88
1 changed files with 9 additions and 8 deletions
  1. 9 8
      timer.asm

+ 9 - 8
timer.asm

@@ -74,8 +74,9 @@ poll:
 	mov ecx, ot
 	int 0x80
 	
+	;sysread on fd from timer blocks til timer triggerd
 	mov eax, SYS_READ
-	mov ebx, 0x0
+	mov ebx, [tfd]
 	mov ecx, tval
 	mov edx, 0x20
 	int 0x80
@@ -87,13 +88,13 @@ poll:
 
 	;mov [lt], bx
 	
-	;mov eax, 4
-	;mov ebx, 1
-	;mov ecx, msg
-	;;mov ecx, ot
-	;mov edx, msgl
-	;;mov edx, 16
-	;int 0x80	
+	mov eax, 4
+	mov ebx, 1
+	mov ecx, msg
+	;mov ecx, ot
+	mov edx, msgl
+	;mov edx, 16
+	int 0x80	
 
 	jmp poll