mirror of
				https://github.com/thornAvery/jep-hack.git
				synced 2025-11-04 21:01:01 +13:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			370 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			370 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
MACRO list_item
 | 
						|
.__item\1
 | 
						|
if (_NARG > 1)
 | 
						|
	db .__item\2 - .__item\1
 | 
						|
endc
 | 
						|
ENDM
 | 
						|
 | 
						|
DEF current_list_item = 0
 | 
						|
 | 
						|
MACRO next_list_item
 | 
						|
DEF next_list_item_index = current_list_item + 1
 | 
						|
	list_item {d:current_list_item}, {d:next_list_item_index}
 | 
						|
DEF current_list_item = next_list_item_index
 | 
						|
ENDM
 | 
						|
 | 
						|
MACRO end_list_items
 | 
						|
	list_item {d:current_list_item}
 | 
						|
DEF current_list_item = 0
 | 
						|
ENDM
 |