mirror of
				https://github.com/simon987/Much-Assembly-Required.git
				synced 2025-11-04 01:56:53 +00:00 
			
		
		
		
	Fixed GET_PATH memory layout added execution cost and number of instructions executed
							parent
							
								
									3964e34f67
								
							
						
					
					
						commit
						30234e6739
					
				
							
								
								
									
										4
									
								
								CPU.md
									
									
									
									
									
								
							
							
								
								
								
								
								
								
									
										
										
									
									
								
							
						
						
									
										4
									
								
								CPU.md
									
									
									
									
									
								
							@ -19,7 +19,9 @@ The memory represented in a table would look like this:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
| Address | Description |
 | 
					| Address | Description |
 | 
				
			||||||
| ------- | ----------- |
 | 
					| ------- | ----------- |
 | 
				
			||||||
| `0x0000 - 0x00FF` | Memory used by the [LiDAR](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-LiDAR#interrupt-behavior) `GET_PATH` hardware interrupt behavior |
 | 
					| `0x0000 - 0x004F` | Memory used by the [LiDAR](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-LiDAR#interrupt-behavior) `GET_PATH` hardware interrupt behavior |
 | 
				
			||||||
 | 
					| `0x0050` | The execution cost. Is set at the end of the tick. [source](https://github.com/simon987/Much-Assembly-Required/blob/master/Server/src/main/java/net/simon987/server/assembly/CPU.java) |
 | 
				
			||||||
 | 
					| `0x0051:0x0052` | The number of instructions executed. Is set at the end of the tick. [source](https://github.com/simon987/Much-Assembly-Required/blob/master/Server/src/main/java/net/simon987/server/assembly/CPU.java) |
 | 
				
			||||||
| `0x0100 - 0x01FF` | Memory used by the [LiDAR](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-LiDAR#interrupt-behavior) `GET_MAP` hardware interrupt behavior |
 | 
					| `0x0100 - 0x01FF` | Memory used by the [LiDAR](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-LiDAR#interrupt-behavior) `GET_MAP` hardware interrupt behavior |
 | 
				
			||||||
| `0x0200 - 0x0200 + PROGRAM_SIZE` | The instructions that make up your program |
 | 
					| `0x0200 - 0x0200 + PROGRAM_SIZE` | The instructions that make up your program |
 | 
				
			||||||
| `...`| Not assigned to anything |
 | 
					| `...`| Not assigned to anything |
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user