nearly final 0.4.0 hax
This commit is contained in:
		
							parent
							
								
									3a6b33db27
								
							
						
					
					
						commit
						31f91e754b
					
				|  | @ -21,12 +21,15 @@ | |||
| 	      (byte2 (bitwise-and #b11111111 num24)) | ||||
| 	      (byte3 (bitwise-and #b11111111 num32))) | ||||
| 	 (+ (arithmetic-shift byte3 24) | ||||
| 	    (arithmetic-shift byte2 16)	 | ||||
| 	    (arithmetic-shift byte1  8) | ||||
| 	    byte0)))) | ||||
| 
 | ||||
| (define (net-to-host-16-little num16) | ||||
|   (and (<= 0 num16 #xffffffff) | ||||
|        (let* ((num08 (arithmetic-shift num16 -8)) | ||||
| 	      (byte0 (bitwise-and #b11111111 num08)) | ||||
| 	      (byte1 (bitwise-and #b11111111 num16)) | ||||
| 	      (byte1 (bitwise-and #b11111111 num16))) | ||||
| 	 (+ (arithmetic-shift byte1 8) | ||||
| 	    byte0)))) | ||||
| 
 | ||||
|  |  | |||
|  | @ -12,7 +12,10 @@ | |||
| 			      header-a-units | ||||
| 			      d-vector?  | ||||
| 			      stob-type) | ||||
|   (open scheme heap)) | ||||
|   (open scheme heap) | ||||
|   (begin | ||||
|     (define (newspace-begin) *newspace-begin*) | ||||
|     (define (heap-pointer) *hp*))) | ||||
| 
 | ||||
| (define-structure scsh-static-heap (export scsh-static-linker) | ||||
|   (open scheme heap memory data stob struct | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 bdc
						bdc