; this is my test file for the code_pack gpasm patch

;
; the idea is to test as many permutations of packed data as possible,
; and to make sure that the label addresses generated are always correct.
;

            list p=18f2455

blech       code_pack   0x100

label0
            db 1
label1
            db 2
label2
            db 3, 4
label4
            db 5
label5
            db 6, 7, 8
label8
            db 9, 0xa, 0xb
label0xb
            db 0xc
label0xc
            db 0xd, 0xe, 0xf, 0x10
label0x10
            db 0x11, 0x12, 0x13, 0x14, 0x15
label0x15   
            db 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b
label0x1b 
            db 0x1c
label0x1c
            db 0x1d, 0x1e
label0x1e
            db 0x1f, 0x20, 0x21, 0x22, 0x23, 0x24
label0x24
            db 0x25
label0x25
            db 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c
label0x2c
            db 0x2d

blech2      code_pack   0x200

blabel0 db 1
blabel1 db 2
blabel2 db 3, 4
blabel4 db 5
blabel5 db 6, 7, 8
blabel8 db 9, 0xa, 0xb
blabel0xb db 0xc
blabel0xc db 0xd, 0xe, 0xf, 0x10
blabel0x10 db 0x11, 0x12, 0x13, 0x14, 0x15
blabel0x15 db 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b
blabel0x1b db 0x1c
blabel0x1c db 0x1d, 0x1e
blabel0x1e db 0x1f, 0x20, 0x21, 0x22, 0x23, 0x24
blabel0x24 db 0x25
blabel0x25 db 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c
blabel0x2c db 0x2d

blech3      code
            movlw   0
	db 1
	res 2
            end

