        radix   dec
        ; Code bank 0; Start address: 0; End address: 2047
        org     0


        ; Define start addresses for data regions
shared___globals equ 112
globals___0 equ 32
globals___1 equ 160
globals___2 equ 272
globals___3 equ 400
__indf equ 0
__pcl equ 2
__status equ 3
__fsr equ 4
__c___byte equ 3
__c___bit equ 0
__z___byte equ 3
__z___bit equ 2
__rp0___byte equ 3
__rp0___bit equ 5
__rp1___byte equ 3
__rp1___bit equ 6
__irp___byte equ 3
__irp___bit equ 7
__pclath equ 10
__cb0___byte equ 10
__cb0___bit equ 3
__cb1___byte equ 10
__cb1___bit equ 4

        ; # Copyright (c) 2005-2007 by Wayne C. Gramlich
        ; # All rights reserved.

        ; buffer = 'buffer'
        ; line_number = 6
        ; library _pic16f777 entered

        ; # Copyright (c) 2004-2006 by Wayne C. Gramlich
        ; # All rights reserved.

        ; buffer = '_pic16f777'
        ; line_number = 6
        ; processor pic16f676
        ; line_number = 7
        ; configure_address 0x2007
        ; line_number = 8
        ;  configure_fill 0x0600
        ; line_number = 9
        ;  configure_option cp: off = 0x2000
        ; line_number = 10
        ;  configure_option cp: on = 0x0000
        ; line_number = 11
        ;  configure_option cpmx: rc1 = 0x1000
        ; line_number = 12
        ;  configure_option cpmx: rb3 = 0x0000
        ; line_number = 13
        ;  configure_option debug: off = 0x0800
        ; line_number = 14
        ;  configure_option debug: on = 0x0000
        ; line_number = 15
        ;  configure_option borv: borv11 = 0x0180
        ; line_number = 16
        ;  configure_option borv: borv10 = 0x0100
        ; line_number = 17
        ;  configure_option borv: borv01 = 0x0080
        ; line_number = 18
        ;  configure_option borv: borv00 = 0x0000
        ; line_number = 19
        ;  configure_option boren: on = 0x40
        ; line_number = 20
        ;  configure_option boren: off = 0x00
        ; line_number = 21
        ;  configure_option mclre: on = 0x20
        ; line_number = 22
        ;  configure_option mclre: off = 0x00
        ; line_number = 23
        ;  configure_option pwrten: off = 8
        ; line_number = 24
        ;  configure_option pwrten: on = 0
        ; line_number = 25
        ;  configure_option wdten: on = 4
        ; line_number = 26
        ;  configure_option wdten: off = 0
        ; line_number = 27
        ;  configure_option fosc: rc_clk = 0x13
        ; line_number = 28
        ;  configure_option fosc: rc_no_clk = 0x12
        ; line_number = 29
        ;  configure_option fosc: int_clk = 0x11
        ; line_number = 30
        ;  configure_option fosc: int_no_clk = 0x10
        ; line_number = 31
        ;  configure_option fosc: extclk = 3
        ; line_number = 32
        ;  configure_option fosc: hs = 2
        ; line_number = 33
        ;  configure_option fosc: xt = 1
        ; line_number = 34
        ;  configure_option fosc: lp = 0

        ; line_number = 36
        ;  configure_address 0x2008
        ; line_number = 37
        ;  configure_fill 0x33bc
        ; line_number = 38
        ;  configure_option borsen: on = 0x0040
        ; line_number = 39
        ;  configure_option borsen: off = 0x0000
        ; line_number = 40
        ;  configure_option ieso: on = 0x0002
        ; line_number = 41
        ;  configure_option ieso: off = 0x0002
        ; line_number = 42
        ;  configure_option fcmen: on = 0x0001
        ; line_number = 43
        ;  configure_option fcmen: off = 0x0000

        ; line_number = 45
        ;  code_bank 0x0 : 0x7ff
        ; line_number = 46
        ;  code_bank 0x800 : 0xfff
        ; line_number = 47
        ;  code_bank 0x1000 : 0x17ff
        ; line_number = 48
        ;  code_bank 0x1800 : 0x1fff
        ; line_number = 49
        ;  data_bank 0x0 : 0x7f
        ; line_number = 50
        ;  data_bank 0x80 : 0xff
        ; line_number = 51
        ;  data_bank 0x100 : 0x17f
        ; line_number = 52
        ;  data_bank 0x180 : 0x1ff
        ; line_number = 53
        ;  global_region 0x20 : 0x6f
        ; line_number = 54
        ;  global_region 0xa0 : 0xef
        ; line_number = 55
        ;  global_region 0x110 : 0x16f
        ; line_number = 56
        ;  global_region 0x190 : 0x1ff
        ; line_number = 57
        ;  shared_region 0x70 : 0x7f

        ; line_number = 59
        ;  interrupts_possible
        ; line_number = 60
        ;  packages pdip = 40
        ; line_number = 61
        ;  pin re3_in, re3_out, mclr, vpp, thv, re3_unused
        ; line_number = 62
        ; pin_bindings pdip = 1
        ; line_number = 63
        ;  bind_to _porte@3
        ; line_number = 64
        ;  or_if re3_in _trise 8
        ; line_number = 65
        ;  or_if re3_in _adcon1 15
        ; line_number = 66
        ;  or_if re3_in _adcon0 0
        ; line_number = 67
        ;  or_if re3_out _trise 0
        ; line_number = 68
        ;  or_if re3_out _adcon1 15
        ; line_number = 69
        ;  or_if re3_out _adcon0 0
        ; line_number = 70
        ; pin ra0_in, ra0_out, an0, ra0_unused
        ; line_number = 71
        ; pin_bindings pdip = 2
        ; line_number = 72
        ;  bind_to _porta@0
        ; line_number = 73
        ;  or_if ra0_in _trisa 1
        ; line_number = 74
        ;  or_if ra0_in _adcon1 15
        ; line_number = 75
        ;  or_if ra0_in _adcon0 0
        ; line_number = 76
        ;  or_if ra0_out _trisa 0
        ; line_number = 77
        ;  or_if ra0_out _adcon1 15
        ; line_number = 78
        ;  or_if ra0_out _adcon0 0
        ; line_number = 79
        ; pin ra1_in, ra1_out, an1, ra1_unused
        ; line_number = 80
        ; pin_bindings pdip = 3
        ; line_number = 81
        ;  bind_to _porta@1
        ; line_number = 82
        ;  or_if ra1_in _trisa 2
        ; line_number = 83
        ;  or_if ra1_in _adcon1 15
        ; line_number = 84
        ;  or_if ra1_in _adcon0 0
        ; line_number = 85
        ;  or_if ra1_out _trisa 0
        ; line_number = 86
        ;  or_if ra1_out _adcon1 15
        ; line_number = 87
        ;  or_if ra1_out _adcon0 0
        ; line_number = 88
        ; pin ra2_in, ra2_out, an2, vref_minus, ra2_unused
        ; line_number = 89
        ; pin_bindings pdip = 4
        ; line_number = 90
        ;  bind_to _porta@2
        ; line_number = 91
        ;  or_if ra2_in _trisa 4
        ; line_number = 92
        ;  or_if ra2_in _adcon1 15
        ; line_number = 93
        ;  or_if ra2_in _adcon0 0
        ; line_number = 94
        ;  or_if ra2_out _trisa 0
        ; line_number = 95
        ;  or_if ra2_out _adcon1 15
        ; line_number = 96
        ;  or_if ra2_out _adcon0 0
        ; line_number = 97
        ; pin ra3_in, ra3_out, an3, vrev_plus, ra3_unused
        ; line_number = 98
        ; pin_bindings pdip = 5
        ; line_number = 99
        ;  bind_to _porta@3
        ; line_number = 100
        ;  or_if ra3_in _trisa 8
        ; line_number = 101
        ;  or_if ra3_in _adcon1 15
        ; line_number = 102
        ;  or_if ra3_in _adcon0 0
        ; line_number = 103
        ;  or_if ra3_out _trisa 0
        ; line_number = 104
        ;  or_if ra3_out _adcon1 15
        ; line_number = 105
        ;  or_if ra3_out _adcon0 0
        ; line_number = 106
        ; pin ra4_in, ra4_out, t0cki, ra4_unused
        ; line_number = 107
        ; pin_bindings pdip = 6
        ; line_number = 108
        ;  bind_to _porta@4
        ; line_number = 109
        ;  or_if ra4_in _trisa 16
        ; line_number = 110
        ;  or_if ra4_in _adcon1 15
        ; line_number = 111
        ;  or_if ra4_in _adcon0 0
        ; line_number = 112
        ;  or_if ra4_out _trisa 0
        ; line_number = 113
        ;  or_if ra4_out _adcon1 15
        ; line_number = 114
        ;  or_if ra4_out _adcon0 0
        ; line_number = 115
        ; pin ra5_in, ra5_out, an4, ra5_unused
        ; line_number = 116
        ; pin_bindings pdip = 7
        ; line_number = 117
        ;  bind_to _porta@5
        ; line_number = 118
        ;  or_if ra5_in _trisa 32
        ; line_number = 119
        ;  or_if ra5_in _adcon1 15
        ; line_number = 120
        ;  or_if ra5_in _adcon0 0
        ; line_number = 121
        ;  or_if ra5_out _trisa 0
        ; line_number = 122
        ;  or_if ra5_out _adcon1 15
        ; line_number = 123
        ;  or_if ra5_out _adcon0 0
        ; line_number = 124
        ; pin re0_in, re0_out, rd, an5, re0_unused
        ; line_number = 125
        ; pin_bindings pdip = 8
        ; line_number = 126
        ;  bind_to _porte@0
        ; line_number = 127
        ;  or_if re0_in _trise 1
        ; line_number = 128
        ;  or_if re0_in _adcon1 15
        ; line_number = 129
        ;  or_if re0_in _adcon0 0
        ; line_number = 130
        ;  or_if re0_out _trise 0
        ; line_number = 131
        ;  or_if re0_out _adcon1 15
        ; line_number = 132
        ;  or_if re0_out _adcon0 0
        ; line_number = 133
        ; pin re1_in, re1_out, wr, an6, re1_unused
        ; line_number = 134
        ; pin_bindings pdip = 9
        ; line_number = 135
        ;  bind_to _porte@1
        ; line_number = 136
        ;  or_if re1_in _trise 2
        ; line_number = 137
        ;  or_if re1_in _adcon1 15
        ; line_number = 138
        ;  or_if re1_in _adcon0 0
        ; line_number = 139
        ;  or_if re1_out _trise 0
        ; line_number = 140
        ;  or_if re1_out _adcon1 15
        ; line_number = 141
        ;  or_if re1_out _adcon0 0
        ; line_number = 142
        ; pin re2_in, re2_out, cs, re2_unused
        ; line_number = 143
        ; pin_bindings pdip = 10
        ; line_number = 144
        ;  bind_to _porte@2
        ; line_number = 145
        ;  or_if re2_in _trise 4
        ; line_number = 146
        ;  or_if re2_in _adcon1 15
        ; line_number = 147
        ;  or_if re2_in _adcon0 0
        ; line_number = 148
        ;  or_if re2_out _trise 0
        ; line_number = 149
        ;  or_if re2_out _adcon1 15
        ; line_number = 150
        ;  or_if re2_out _adcon0 0
        ; line_number = 151
        ; pin vdd1, power_supply
        ; line_number = 152
        ; pin_bindings pdip = 11
        ; line_number = 153
        ; pin vss1, ground
        ; line_number = 154
        ; pin_bindings pdip = 12
        ; line_number = 155
        ; pin osc1, clki, ra7_in, ra7_out, ra7_unused
        ; line_number = 156
        ; pin_bindings pdip = 13
        ; line_number = 157
        ;  bind_to _porta@6
        ; line_number = 158
        ;  or_if ra7_in _trisa 128
        ; line_number = 159
        ;  or_if ra7_in _adcon1 15
        ; line_number = 160
        ;  or_if ra7_in _adcon0 0
        ; line_number = 161
        ;  or_if ra7_out _trisa 0
        ; line_number = 162
        ;  or_if ra7_out _adcon1 15
        ; line_number = 163
        ;  or_if ra7_out _adcon0 0
        ; line_number = 164
        ; pin osc2, clko, ra6_in, ra6_out, ra6_unused
        ; line_number = 165
        ; pin_bindings pdip = 14
        ; line_number = 166
        ;  bind_to _porta@6
        ; line_number = 167
        ;  or_if ra6_in _trisa 64
        ; line_number = 168
        ;  or_if ra6_in _adcon1 15
        ; line_number = 169
        ;  or_if ra6_in _adcon0 0
        ; line_number = 170
        ;  or_if ra6_out _trisa 0
        ; line_number = 171
        ;  or_if ra6_out _adcon1 15
        ; line_number = 172
        ;  or_if ra6_out _adcon0 0
        ; line_number = 173
        ; pin rc0_in, rc0_out, t1oso, t1cki, rc0_unused
        ; line_number = 174
        ; pin_bindings pdip = 15
        ; line_number = 175
        ;  bind_to _portc@0
        ; line_number = 176
        ;  or_if rc0_in _trisc 1
        ; line_number = 177
        ;  or_if rc0_in _adcon1 15
        ; line_number = 178
        ;  or_if rc0_in _adcon0 0
        ; line_number = 179
        ;  or_if rc0_out _trisc 0
        ; line_number = 180
        ;  or_if rc0_out _adcon1 15
        ; line_number = 181
        ;  or_if rc0_out _adcon0 0
        ; line_number = 182
        ; pin rc1_in, rc1_out, t1osi, ccp2a, rc1_unused
        ; line_number = 183
        ; pin_bindings pdip = 16
        ; line_number = 184
        ;  bind_to _portc@1
        ; line_number = 185
        ;  or_if rc1_in _trisc 2
        ; line_number = 186
        ;  or_if rc1_in _adcon1 15
        ; line_number = 187
        ;  or_if rc1_in _adcon0 0
        ; line_number = 188
        ;  or_if rc1_out _trisc 0
        ; line_number = 189
        ;  or_if rc1_out _adcon1 15
        ; line_number = 190
        ;  or_if rc1_out _adcon0 0
        ; line_number = 191
        ; pin rc2_in, rc2_out, ccp1, rc2_unused
        ; line_number = 192
        ; pin_bindings pdip = 17
        ; line_number = 193
        ;  bind_to _portc@2
        ; line_number = 194
        ;  or_if rc2_in _trisc 4
        ; line_number = 195
        ;  or_if rc2_in _adcon1 15
        ; line_number = 196
        ;  or_if rc2_in _adcon0 0
        ; line_number = 197
        ;  or_if rc2_out _trisc 0
        ; line_number = 198
        ;  or_if rc2_out _adcon1 15
        ; line_number = 199
        ;  or_if rc2_out _adcon0 0
        ; line_number = 200
        ; pin rc3_in, rc3_out, sck, scl, rc3_unused
        ; line_number = 201
        ; pin_bindings pdip = 18
        ; line_number = 202
        ;  bind_to _portc@3
        ; line_number = 203
        ;  or_if rc3_in _trisc 8
        ; line_number = 204
        ;  or_if rc3_in _adcon1 15
        ; line_number = 205
        ;  or_if rc3_in _adcon0 0
        ; line_number = 206
        ;  or_if rc3_out _trisc 0
        ; line_number = 207
        ;  or_if rc3_out _adcon1 15
        ; line_number = 208
        ;  or_if rc3_out _adcon0 0
        ; line_number = 209
        ; pin rd0_in, rd0_out, psp0, rd0_unused
        ; line_number = 210
        ; pin_bindings pdip = 19
        ; line_number = 211
        ;  bind_to _portd@0
        ; line_number = 212
        ;  or_if rd0_in _trisd 1
        ; line_number = 213
        ;  or_if rd0_in _adcon1 15
        ; line_number = 214
        ;  or_if rd0_in _adcon0 0
        ; line_number = 215
        ;  or_if rd0_out _trisd 0
        ; line_number = 216
        ;  or_if rd0_out _adcon1 15
        ; line_number = 217
        ;  or_if rd0_out _adcon0 0
        ; line_number = 218
        ; pin rd1_in, rd1_out, psp1, rd1_unused
        ; line_number = 219
        ; pin_bindings pdip = 20
        ; line_number = 220
        ;  bind_to _portd@1
        ; line_number = 221
        ;  or_if rd1_in _trisd 2
        ; line_number = 222
        ;  or_if rd1_in _adcon1 15
        ; line_number = 223
        ;  or_if rd1_in _adcon0 0
        ; line_number = 224
        ;  or_if rd1_out _trisd 0
        ; line_number = 225
        ;  or_if rd1_out _adcon1 15
        ; line_number = 226
        ;  or_if rd1_out _adcon0 0
        ; line_number = 227
        ; pin rd2_in, rd2_out, psp2, rd2_unused
        ; line_number = 228
        ; pin_bindings pdip = 21
        ; line_number = 229
        ;  bind_to _portd@2
        ; line_number = 230
        ;  or_if rd2_in _trisd 4
        ; line_number = 231
        ;  or_if rd2_in _adcon1 15
        ; line_number = 232
        ;  or_if rd2_in _adcon0 0
        ; line_number = 233
        ;  or_if rd2_out _trisd 0
        ; line_number = 234
        ;  or_if rd2_out _adcon1 15
        ; line_number = 235
        ;  or_if rd2_out _adcon0 0
        ; line_number = 236
        ; pin rd3_in, rd3_out, psp3, rd3_unused
        ; line_number = 237
        ; pin_bindings pdip = 22
        ; line_number = 238
        ;  bind_to _portd@3
        ; line_number = 239
        ;  or_if rd3_in _trisd 8
        ; line_number = 240
        ;  or_if rd3_in _adcon1 15
        ; line_number = 241
        ;  or_if rd3_in _adcon0 0
        ; line_number = 242
        ;  or_if rd3_out _trisd 0
        ; line_number = 243
        ;  or_if rd3_out _adcon1 15
        ; line_number = 244
        ;  or_if rd3_out _adcon0 0
        ; line_number = 245
        ; pin rc4_in, rc4_out, sdi, sda, rc4_unused
        ; line_number = 246
        ; pin_bindings pdip = 23
        ; line_number = 247
        ;  bind_to _portc@4
        ; line_number = 248
        ;  or_if rc4_in _trisc 16
        ; line_number = 249
        ;  or_if rc4_in _adcon1 15
        ; line_number = 250
        ;  or_if rc4_in _adcon0 0
        ; line_number = 251
        ;  or_if rc4_out _trisc 0
        ; line_number = 252
        ;  or_if rc4_out _adcon1 15
        ; line_number = 253
        ;  or_if rc4_out _adcon0 0
        ; line_number = 254
        ; pin rc5_in, rc5_out, sdo, rc5_unused
        ; line_number = 255
        ; pin_bindings pdip = 24
        ; line_number = 256
        ;  bind_to _portc@5
        ; line_number = 257
        ;  or_if rc5_in _trisc 32
        ; line_number = 258
        ;  or_if rc5_in _adcon1 15
        ; line_number = 259
        ;  or_if rc5_in _adcon0 0
        ; line_number = 260
        ;  or_if rc5_out _trisc 0
        ; line_number = 261
        ;  or_if rc5_out _adcon1 15
        ; line_number = 262
        ;  or_if rc5_out _adcon0 0
        ; line_number = 263
        ; pin rc6_in, rc6_out, tx, ck, rc6_unused
        ; line_number = 264
        ; pin_bindings pdip = 25
        ; line_number = 265
        ;  bind_to _portc@6
        ; line_number = 266
        ;  or_if rc6_in _trisc 64
        ; line_number = 267
        ;  or_if rc6_in _adcon1 15
        ; line_number = 268
        ;  or_if rc6_in _adcon0 0
        ; line_number = 269
        ;  or_if rc6_out _trisc 0
        ; line_number = 270
        ;  or_if rc6_out _adcon1 15
        ; line_number = 271
        ;  or_if rc6_out _adcon0 0
        ; line_number = 272
        ;  or_if tx _trisc 0
        ; line_number = 273
        ;  or_if tx _adcon1 15
        ; line_number = 274
        ;  or_if tx _adcon0 0
        ; line_number = 275
        ; pin rc7_in, rc7_out, rx, dt, rc7_unused
        ; line_number = 276
        ; pin_bindings pdip = 26
        ; line_number = 277
        ;  bind_to _portc@7
        ; line_number = 278
        ;  or_if rc7_in _trisc 128
        ; line_number = 279
        ;  or_if rc7_in _adcon1 15
        ; line_number = 280
        ;  or_if rc7_in _adcon0 0
        ; line_number = 281
        ;  or_if rx _trisc 128
        ; line_number = 282
        ;  or_if rx _adcon1 15
        ; line_number = 283
        ;  or_if rx _adcon0 0
        ; line_number = 284
        ;  or_if rc7_out _trisc 0
        ; line_number = 285
        ;  or_if rc7_out _adcon1 15
        ; line_number = 286
        ;  or_if rc7_out _adcon0 0
        ; line_number = 287
        ; pin rd4_in, rd4_out, psp4, rd4_unused
        ; line_number = 288
        ; pin_bindings pdip = 27
        ; line_number = 289
        ;  bind_to _portd@4
        ; line_number = 290
        ;  or_if rd4_in _trisd 16
        ; line_number = 291
        ;  or_if rd4_in _adcon1 15
        ; line_number = 292
        ;  or_if rd4_in _adcon0 0
        ; line_number = 293
        ;  or_if rd4_out _trisd 0
        ; line_number = 294
        ;  or_if rd4_out _adcon1 15
        ; line_number = 295
        ;  or_if rd4_out _adcon0 0
        ; line_number = 296
        ; pin rd5_in, rd5_out, psp5, rd5_unused
        ; line_number = 297
        ; pin_bindings pdip = 28
        ; line_number = 298
        ;  bind_to _portd@5
        ; line_number = 299
        ;  or_if rd5_in _trisd 32
        ; line_number = 300
        ;  or_if rd5_in _adcon1 15
        ; line_number = 301
        ;  or_if rd5_in _adcon0 0
        ; line_number = 302
        ;  or_if rd5_out _trisd 0
        ; line_number = 303
        ;  or_if rd5_out _adcon1 15
        ; line_number = 304
        ;  or_if rd5_out _adcon0 0
        ; line_number = 305
        ; pin rd6_in, rd6_out, psp6, rd6_unused
        ; line_number = 306
        ; pin_bindings pdip = 29
        ; line_number = 307
        ;  bind_to _portd@6
        ; line_number = 308
        ;  or_if rd6_in _trisd 64
        ; line_number = 309
        ;  or_if rd6_in _adcon1 15
        ; line_number = 310
        ;  or_if rd6_in _adcon0 0
        ; line_number = 311
        ;  or_if rd6_out _trisd 0
        ; line_number = 312
        ;  or_if rd6_out _adcon1 15
        ; line_number = 313
        ;  or_if rd6_out _adcon0 0
        ; line_number = 314
        ; pin rd7_in, rd7_out, psp7, rd7_unused
        ; line_number = 315
        ; pin_bindings pdip = 30
        ; line_number = 316
        ;  bind_to _portd@7
        ; line_number = 317
        ;  or_if rd7_in _trisd 128
        ; line_number = 318
        ;  or_if rd7_in _adcon1 15
        ; line_number = 319
        ;  or_if rd7_in _adcon0 0
        ; line_number = 320
        ;  or_if rd7_out _trisd 0
        ; line_number = 321
        ;  or_if rd7_out _adcon1 15
        ; line_number = 322
        ;  or_if rd7_out _adcon0 0
        ; line_number = 323
        ; pin vss2, ground2
        ; line_number = 324
        ; pin_bindings pdip = 31
        ; line_number = 325
        ; pin vdd2, power_supply2
        ; line_number = 326
        ; pin_bindings pdip = 32
        ; line_number = 327
        ; pin rb0_in, rb0_out, int, an12, rb0_unused
        ; line_number = 328
        ; pin_bindings pdip = 33
        ; line_number = 329
        ;  bind_to _portb@0
        ; line_number = 330
        ;  or_if rb0_in _trisb 1
        ; line_number = 331
        ;  or_if rb0_in _adcon1 15
        ; line_number = 332
        ;  or_if rb0_in _adcon0 0
        ; line_number = 333
        ;  or_if rb0_out _trisb 0
        ; line_number = 334
        ;  or_if rb0_out _adcon1 15
        ; line_number = 335
        ;  or_if rb0_out _adcon0 0
        ; line_number = 336
        ; pin rb1_in, rb1_out, an10, rb1_unused
        ; line_number = 337
        ; pin_bindings pdip = 34
        ; line_number = 338
        ;  bind_to _portb@1
        ; line_number = 339
        ;  or_if rb1_in _trisb 2
        ; line_number = 340
        ;  or_if rb1_in _adcon1 15
        ; line_number = 341
        ;  or_if rb1_in _adcon0 0
        ; line_number = 342
        ;  or_if rb1_out _trisb 0
        ; line_number = 343
        ;  or_if rb1_out _adcon1 15
        ; line_number = 344
        ;  or_if rb1_out _adcon0 0
        ; line_number = 345
        ; pin rb2_in, rb2_out, an8, rb2_unused
        ; line_number = 346
        ; pin_bindings pdip = 35
        ; line_number = 347
        ;  bind_to _portb@2
        ; line_number = 348
        ;  or_if rb2_in _trisb 4
        ; line_number = 349
        ;  or_if rb2_in _adcon1 15
        ; line_number = 350
        ;  or_if rb2_in _adcon0 0
        ; line_number = 351
        ;  or_if rb2_out _trisb 0
        ; line_number = 352
        ;  or_if rb2_out _adcon1 15
        ; line_number = 353
        ;  or_if rb2_out _adcon0 0
        ; line_number = 354
        ; pin rb3_in, rb3_out, ccp2b, an9, rb3_unused
        ; line_number = 355
        ; pin_bindings pdip = 36
        ; line_number = 356
        ;  bind_to _portb@3
        ; line_number = 357
        ;  or_if rb3_in _trisb 8
        ; line_number = 358
        ;  or_if rb3_in _adcon1 15
        ; line_number = 359
        ;  or_if rb3_out _trisb 0
        ; line_number = 360
        ;  or_if rb3_out _adcon1 15
        ; line_number = 361
        ; pin rb4_in, rb4_out, an11, rb4_unused
        ; line_number = 362
        ; pin_bindings pdip = 37
        ; line_number = 363
        ;  bind_to _portb@4
        ; line_number = 364
        ;  or_if rb4_in _trisb 16
        ; line_number = 365
        ;  or_if rb4_in _adcon1 15
        ; line_number = 366
        ;  or_if rb4_in _adcon0 0
        ; line_number = 367
        ;  or_if rb4_out _trisb 0
        ; line_number = 368
        ;  or_if rb4_out _adcon1 15
        ; line_number = 369
        ;  or_if rb4_out _adcon0 0
        ; line_number = 370
        ; pin rb5_in, rb5_out, an13, ccp3, rb5_unused
        ; line_number = 371
        ; pin_bindings pdip = 38
        ; line_number = 372
        ;  bind_to _portb@5
        ; line_number = 373
        ;  or_if rb5_in _trisb 32
        ; line_number = 374
        ;  or_if rb5_in _adcon1 15
        ; line_number = 375
        ;  or_if rb5_in _adcon0 0
        ; line_number = 376
        ;  or_if rb5_out _trisb 0
        ; line_number = 377
        ;  or_if rb5_out _adcon1 15
        ; line_number = 378
        ;  or_if rb5_out _adcon0 0
        ; line_number = 379
        ; pin rb6_in, rb6_out, pgc, rb6_unused
        ; line_number = 380
        ; pin_bindings pdip = 39
        ; line_number = 381
        ;  bind_to _portb@6
        ; line_number = 382
        ;  or_if rb6_in _trisb 64
        ; line_number = 383
        ;  or_if rb6_in _adcon1 15
        ; line_number = 384
        ;  or_if rb6_in _adcon0 0
        ; line_number = 385
        ;  or_if rb6_out _trisb 0
        ; line_number = 386
        ;  or_if rb6_out _adcon1 15
        ; line_number = 387
        ;  or_if rb6_out _adcon0 0
        ; line_number = 388
        ; pin rb7_in, rb7_out, pgd, rb7_unused
        ; line_number = 389
        ; pin_bindings pdip = 40
        ; line_number = 390
        ;  bind_to _portb@7
        ; line_number = 391
        ;  or_if rb7_in _trisb 128
        ; line_number = 392
        ;  or_if rb7_in _adcon1 15
        ; line_number = 393
        ;  or_if rb7_in _adcon0 0
        ; line_number = 394
        ;  or_if rb7_out _trisb 0
        ; line_number = 395
        ;  or_if rb7_out _adcon1 15
        ; line_number = 396
        ;  or_if rb7_out _adcon0 0

        ; line_number = 398
        ; library _pic16f7x7 entered

        ; # Copyright (c) 2004-2006 by Wayne C. Gramlich
        ; # All rights reserved.

        ; buffer = '_pic16f7x7'
        ; line_number = 6
        ; library _standard entered

        ; # Copyright (c) 2006 by Wayne C. Gramlich
        ; # All rights reserved.

        ; # Standard definition for uCL:

        ; buffer = '_standard'
        ; line_number = 8
        ; constant _true = (1 = 1)
_true equ 1
        ; line_number = 9
        ; constant _false = (0 != 0)
_false equ 0


        ; buffer = '_pic16f7x7'
        ; line_number = 6
        ; library _standard exited

        ; # Common declarations for PIC16F7x7 series microcontrollers:

        ; # Register and pin definitions:

        ; # Bank 0:

        ; line_number = 14
        ; register _indf = 
_indf equ 0

        ; line_number = 16
        ; register _tmr0 = 
_tmr0 equ 1

        ; line_number = 18
        ; register _pcl = 
_pcl equ 2

        ; line_number = 20
        ; register _status = 
_status equ 3
        ; line_number = 21
        ; bind _irp = _status@7
_irp___byte equ _status
_irp___bit equ 7
        ; line_number = 22
        ; bind _rp1 = _status@6
_rp1___byte equ _status
_rp1___bit equ 6
        ; line_number = 23
        ; bind _rp0 = _status@5
_rp0___byte equ _status
_rp0___bit equ 5
        ; line_number = 24
        ; bind _to = _status@4
_to___byte equ _status
_to___bit equ 4
        ; line_number = 25
        ; bind _pd = _status@3
_pd___byte equ _status
_pd___bit equ 3
        ; line_number = 26
        ; bind _z = _status@2
_z___byte equ _status
_z___bit equ 2
        ; line_number = 27
        ; bind _dc = _status@1
_dc___byte equ _status
_dc___bit equ 1
        ; line_number = 28
        ; bind _c = _status@0
_c___byte equ _status
_c___bit equ 0

        ; line_number = 30
        ; register _fsr = 
_fsr equ 4

        ; line_number = 32
        ; register _porta = 
_porta equ 5

        ; line_number = 34
        ; register _portb = 
_portb equ 6

        ; line_number = 36
        ; register _portc = 
_portc equ 7

        ; line_number = 38
        ; register _pclath = 
_pclath equ 10

        ; line_number = 40
        ; register _intcon = 
_intcon equ 11
        ; line_number = 41
        ; bind _gie = _intcon@7
_gie___byte equ _intcon
_gie___bit equ 7
        ; line_number = 42
        ; bind _peie = _intcon@6
_peie___byte equ _intcon
_peie___bit equ 6
        ; line_number = 43
        ; bind _tmr0ie = _intcon@5
_tmr0ie___byte equ _intcon
_tmr0ie___bit equ 5
        ; line_number = 44
        ; bind _int0ie = _intcon@4
_int0ie___byte equ _intcon
_int0ie___bit equ 4
        ; line_number = 45
        ; bind _rbie = _intcon@3
_rbie___byte equ _intcon
_rbie___bit equ 3
        ; line_number = 46
        ; bind _tmr0if = _intcon@2
_tmr0if___byte equ _intcon
_tmr0if___bit equ 2
        ; line_number = 47
        ; bind _int0if = _intcon@1
_int0if___byte equ _intcon
_int0if___bit equ 1
        ; line_number = 48
        ; bind _rbif = _intcon@0
_rbif___byte equ _intcon
_rbif___bit equ 0

        ; line_number = 50
        ; register _pir1 = 
_pir1 equ 12
        ; line_number = 51
        ; bind _pspif = _pir1@7
_pspif___byte equ _pir1
_pspif___bit equ 7
        ; line_number = 52
        ; bind _adif = _pir1@6
_adif___byte equ _pir1
_adif___bit equ 6
        ; line_number = 53
        ; bind _rcif = _pir1@5
_rcif___byte equ _pir1
_rcif___bit equ 5
        ; line_number = 54
        ; bind _txif = _pir1@4
_txif___byte equ _pir1
_txif___bit equ 4
        ; line_number = 55
        ; bind _sspif = _pir1@3
_sspif___byte equ _pir1
_sspif___bit equ 3
        ; line_number = 56
        ; bind _ccp1if = _pir1@2
_ccp1if___byte equ _pir1
_ccp1if___bit equ 2
        ; line_number = 57
        ; bind _tmr2if = _pir1@1
_tmr2if___byte equ _pir1
_tmr2if___bit equ 1
        ; line_number = 58
        ; bind _tmr1if = _pir1@0
_tmr1if___byte equ _pir1
_tmr1if___bit equ 0

        ; line_number = 60
        ; register _pir2 = 
_pir2 equ 13
        ; line_number = 61
        ; bind _osif = _pir2@7
_osif___byte equ _pir2
_osif___bit equ 7
        ; line_number = 62
        ; bind _cmif = _pir2@6
_cmif___byte equ _pir2
_cmif___bit equ 6
        ; line_number = 63
        ; bind _lvif = _pir2@5
_lvif___byte equ _pir2
_lvif___bit equ 5
        ; line_number = 64
        ; bind _bclif = _pir2@3
_bclif___byte equ _pir2
_bclif___bit equ 3
        ; line_number = 65
        ; bind _ccp3if = _pir2@1
_ccp3if___byte equ _pir2
_ccp3if___bit equ 1
        ; line_number = 66
        ; bind _ccp2if = _pir2@0
_ccp2if___byte equ _pir2
_ccp2if___bit equ 0

        ; line_number = 68
        ; register _tmr1l = 
_tmr1l equ 14

        ; line_number = 70
        ; register _tmr1h = 
_tmr1h equ 15

        ; line_number = 72
        ; register _t1con = 
_t1con equ 16
        ; line_number = 73
        ; bind _t1run = _t1con@6
_t1run___byte equ _t1con
_t1run___bit equ 6
        ; line_number = 74
        ; bind _t1ckps1 = _t1con@5
_t1ckps1___byte equ _t1con
_t1ckps1___bit equ 5
        ; line_number = 75
        ; bind _t1ckps0 = _t1con@4
_t1ckps0___byte equ _t1con
_t1ckps0___bit equ 4
        ; line_number = 76
        ; bind _t1oscen = _t1con@3
_t1oscen___byte equ _t1con
_t1oscen___bit equ 3
        ; line_number = 77
        ; bind _t1sync = _t1con@2
_t1sync___byte equ _t1con
_t1sync___bit equ 2
        ; line_number = 78
        ; bind _tmr1cs = _t1con@1
_tmr1cs___byte equ _t1con
_tmr1cs___bit equ 1
        ; line_number = 79
        ; bind _tmr1on = _t1con@0
_tmr1on___byte equ _t1con
_tmr1on___bit equ 0

        ; line_number = 81
        ; register _tmr2 = 
_tmr2 equ 17

        ; line_number = 83
        ; register _t2con = 
_t2con equ 18
        ; line_number = 84
        ; bind _toutps3 = _t2con@6
_toutps3___byte equ _t2con
_toutps3___bit equ 6
        ; line_number = 85
        ; bind _toutps2 = _t2con@5
_toutps2___byte equ _t2con
_toutps2___bit equ 5
        ; line_number = 86
        ; bind _toutps1 = _t2con@4
_toutps1___byte equ _t2con
_toutps1___bit equ 4
        ; line_number = 87
        ; bind _toutps0 = _t2con@3
_toutps0___byte equ _t2con
_toutps0___bit equ 3
        ; line_number = 88
        ; bind _tmr2on = _t2con@2
_tmr2on___byte equ _t2con
_tmr2on___bit equ 2
        ; line_number = 89
        ; bind _t2ckps1 = _t2con@1
_t2ckps1___byte equ _t2con
_t2ckps1___bit equ 1
        ; line_number = 90
        ; bind _t2ckps0 = _t2con@0
_t2ckps0___byte equ _t2con
_t2ckps0___bit equ 0

        ; line_number = 92
        ; register _sspbuf = 
_sspbuf equ 19

        ; line_number = 94
        ; register _sspcon = 
_sspcon equ 20
        ; line_number = 95
        ; bind _wcol = _sspcon@7
_wcol___byte equ _sspcon
_wcol___bit equ 7
        ; line_number = 96
        ; bind _sspov = _sspcon@6
_sspov___byte equ _sspcon
_sspov___bit equ 6
        ; line_number = 97
        ; bind _sspen = _sspcon@5
_sspen___byte equ _sspcon
_sspen___bit equ 5
        ; line_number = 98
        ; bind _ckp = _sspcon@4
_ckp___byte equ _sspcon
_ckp___bit equ 4
        ; line_number = 99
        ; bind _sspm3 = _sspcon@3
_sspm3___byte equ _sspcon
_sspm3___bit equ 3
        ; line_number = 100
        ; bind _sspm2 = _sspcon@2
_sspm2___byte equ _sspcon
_sspm2___bit equ 2
        ; line_number = 101
        ; bind _sspm1 = _sspcon@1
_sspm1___byte equ _sspcon
_sspm1___bit equ 1
        ; line_number = 102
        ; bind _sspm0 = _sspcon@0
_sspm0___byte equ _sspcon
_sspm0___bit equ 0

        ; line_number = 104
        ; register _ccpr1l = 
_ccpr1l equ 21

        ; line_number = 106
        ; register _ccpr1h = 
_ccpr1h equ 22

        ; line_number = 108
        ; register _ccp1con = 
_ccp1con equ 23
        ; line_number = 109
        ; bind _ccp1x = _ccp1con@5
_ccp1x___byte equ _ccp1con
_ccp1x___bit equ 5
        ; line_number = 110
        ; bind _ccp1y = _ccp1con@4
_ccp1y___byte equ _ccp1con
_ccp1y___bit equ 4
        ; line_number = 111
        ; bind _ccp1m3 = _ccp1con@3
_ccp1m3___byte equ _ccp1con
_ccp1m3___bit equ 3
        ; line_number = 112
        ; bind _ccp1m2 = _ccp1con@2
_ccp1m2___byte equ _ccp1con
_ccp1m2___bit equ 2
        ; line_number = 113
        ; bind _ccp1m1 = _ccp1con@1
_ccp1m1___byte equ _ccp1con
_ccp1m1___bit equ 1
        ; line_number = 114
        ; bind _ccp1m0 = _ccp1con@0
_ccp1m0___byte equ _ccp1con
_ccp1m0___bit equ 0

        ; line_number = 116
        ; register _rcsta = 
_rcsta equ 24
        ; line_number = 117
        ; bind _spen = _rcsta@7
_spen___byte equ _rcsta
_spen___bit equ 7
        ; line_number = 118
        ; bind _rx9 = _rcsta@6
_rx9___byte equ _rcsta
_rx9___bit equ 6
        ; line_number = 119
        ; bind _sren = _rcsta@5
_sren___byte equ _rcsta
_sren___bit equ 5
        ; line_number = 120
        ; bind _cren = _rcsta@4
_cren___byte equ _rcsta
_cren___bit equ 4
        ; line_number = 121
        ; bind _adden = _rcsta@3
_adden___byte equ _rcsta
_adden___bit equ 3
        ; line_number = 122
        ; bind _ferr = _rcsta@2
_ferr___byte equ _rcsta
_ferr___bit equ 2
        ; line_number = 123
        ; bind _oerr = _rcsta@1
_oerr___byte equ _rcsta
_oerr___bit equ 1
        ; line_number = 124
        ; bind _rx9d = _rcsta@0
_rx9d___byte equ _rcsta
_rx9d___bit equ 0

        ; line_number = 126
        ; register _txreg = 
_txreg equ 25

        ; line_number = 128
        ; register _rcreg = 
_rcreg equ 26

        ; line_number = 130
        ; register _ccpr2l = 
_ccpr2l equ 27

        ; line_number = 132
        ; register _ccpr2h = 
_ccpr2h equ 28

        ; line_number = 134
        ; register _ccp2con = 
_ccp2con equ 29
        ; line_number = 135
        ; bind _ccp2x = _ccp2con@5
_ccp2x___byte equ _ccp2con
_ccp2x___bit equ 5
        ; line_number = 136
        ; bind _ccp2y = _ccp2con@4
_ccp2y___byte equ _ccp2con
_ccp2y___bit equ 4
        ; line_number = 137
        ; bind _ccp2m3 = _ccp2con@3
_ccp2m3___byte equ _ccp2con
_ccp2m3___bit equ 3
        ; line_number = 138
        ; bind _ccp2m2 = _ccp2con@2
_ccp2m2___byte equ _ccp2con
_ccp2m2___bit equ 2
        ; line_number = 139
        ; bind _ccp2m1 = _ccp2con@1
_ccp2m1___byte equ _ccp2con
_ccp2m1___bit equ 1
        ; line_number = 140
        ; bind _ccp2m0 = _ccp2con@0
_ccp2m0___byte equ _ccp2con
_ccp2m0___bit equ 0

        ; line_number = 142
        ; register _adresh = 
_adresh equ 30

        ; line_number = 144
        ; register _adcon0 = 
_adcon0 equ 31
        ; line_number = 145
        ; bind _adcs1 = _adcon0@7
_adcs1___byte equ _adcon0
_adcs1___bit equ 7
        ; line_number = 146
        ; bind _adcs0 = _adcon0@6
_adcs0___byte equ _adcon0
_adcs0___bit equ 6
        ; line_number = 147
        ; bind _chs2 = _adcon0@5
_chs2___byte equ _adcon0
_chs2___bit equ 5
        ; line_number = 148
        ; bind _chs1 = _adcon0@4
_chs1___byte equ _adcon0
_chs1___bit equ 4
        ; line_number = 149
        ; bind _chs0 = _adcon0@3
_chs0___byte equ _adcon0
_chs0___bit equ 3
        ; line_number = 150
        ; bind _go_done = _adcon0@2
_go_done___byte equ _adcon0
_go_done___bit equ 2
        ; line_number = 151
        ; bind _adon = _adcon0@0
_adon___byte equ _adcon0
_adon___bit equ 0

        ; # Bank 1:

        ; line_number = 155
        ; register _option_reg = 
_option_reg equ 129
        ; line_number = 156
        ; bind _rbpu = _option_reg@7
_rbpu___byte equ _option_reg
_rbpu___bit equ 7
        ; line_number = 157
        ; bind _intedg = _option_reg@6
_intedg___byte equ _option_reg
_intedg___bit equ 6
        ; line_number = 158
        ; bind _t0cs = _option_reg@5
_t0cs___byte equ _option_reg
_t0cs___bit equ 5
        ; line_number = 159
        ; bind _t0se = _option_reg@4
_t0se___byte equ _option_reg
_t0se___bit equ 4
        ; line_number = 160
        ; bind _psa = _option_reg@3
_psa___byte equ _option_reg
_psa___bit equ 3
        ; line_number = 161
        ; bind _ps2 = _option_reg@2
_ps2___byte equ _option_reg
_ps2___bit equ 2
        ; line_number = 162
        ; bind _ps1 = _option_reg@1
_ps1___byte equ _option_reg
_ps1___bit equ 1
        ; line_number = 163
        ; bind _ps0 = _option_reg@0
_ps0___byte equ _option_reg
_ps0___bit equ 0

        ; line_number = 165
        ; register _trisa = 
_trisa equ 133
        ; line_number = 166
        ; bind _trisa7 = _trisa@7
_trisa7___byte equ _trisa
_trisa7___bit equ 7
        ; line_number = 167
        ; bind _trisa6 = _trisa@6
_trisa6___byte equ _trisa
_trisa6___bit equ 6
        ; line_number = 168
        ; bind _trisa5 = _trisa@5
_trisa5___byte equ _trisa
_trisa5___bit equ 5
        ; line_number = 169
        ; bind _trisa4 = _trisa@4
_trisa4___byte equ _trisa
_trisa4___bit equ 4
        ; line_number = 170
        ; bind _trisa3 = _trisa@3
_trisa3___byte equ _trisa
_trisa3___bit equ 3
        ; line_number = 171
        ; bind _trisa2 = _trisa@2
_trisa2___byte equ _trisa
_trisa2___bit equ 2
        ; line_number = 172
        ; bind _trisa1 = _trisa@1
_trisa1___byte equ _trisa
_trisa1___bit equ 1
        ; line_number = 173
        ; bind _trisa0 = _trisa@0
_trisa0___byte equ _trisa
_trisa0___bit equ 0

        ; line_number = 175
        ; register _trisb = 
_trisb equ 134

        ; line_number = 177
        ; register _trisc = 
_trisc equ 135
        ; line_number = 178
        ; bind _trisc7 = _trisc@7
_trisc7___byte equ _trisc
_trisc7___bit equ 7
        ; line_number = 179
        ; bind _trisc6 = _trisc@6
_trisc6___byte equ _trisc
_trisc6___bit equ 6
        ; line_number = 180
        ; bind _trisc5 = _trisc@5
_trisc5___byte equ _trisc
_trisc5___bit equ 5
        ; line_number = 181
        ; bind _trisc4 = _trisc@4
_trisc4___byte equ _trisc
_trisc4___bit equ 4
        ; line_number = 182
        ; bind _trisc3 = _trisc@3
_trisc3___byte equ _trisc
_trisc3___bit equ 3
        ; line_number = 183
        ; bind _trisc2 = _trisc@2
_trisc2___byte equ _trisc
_trisc2___bit equ 2
        ; line_number = 184
        ; bind _trisc1 = _trisc@1
_trisc1___byte equ _trisc
_trisc1___bit equ 1
        ; line_number = 185
        ; bind _trisc0 = _trisc@0
_trisc0___byte equ _trisc
_trisc0___bit equ 0

        ; line_number = 187
        ; register _pie1 = 
_pie1 equ 140
        ; line_number = 188
        ; bind _pspie = _pie1@7
_pspie___byte equ _pie1
_pspie___bit equ 7
        ; line_number = 189
        ; bind _adie = _pie1@6
_adie___byte equ _pie1
_adie___bit equ 6
        ; line_number = 190
        ; bind _rcie = _pie1@5
_rcie___byte equ _pie1
_rcie___bit equ 5
        ; line_number = 191
        ; bind _txie = _pie1@4
_txie___byte equ _pie1
_txie___bit equ 4
        ; line_number = 192
        ; bind _sspie = _pie1@3
_sspie___byte equ _pie1
_sspie___bit equ 3
        ; line_number = 193
        ; bind _ccp1ie = _pie1@2
_ccp1ie___byte equ _pie1
_ccp1ie___bit equ 2
        ; line_number = 194
        ; bind _tmr2ie = _pie1@1
_tmr2ie___byte equ _pie1
_tmr2ie___bit equ 1
        ; line_number = 195
        ; bind _tmr1ie = _pie1@0
_tmr1ie___byte equ _pie1
_tmr1ie___bit equ 0

        ; line_number = 197
        ; register _pie2 = 
_pie2 equ 141
        ; line_number = 198
        ; bind _osfie = _pie2@7
_osfie___byte equ _pie2
_osfie___bit equ 7
        ; line_number = 199
        ; bind _cmie = _pie2@6
_cmie___byte equ _pie2
_cmie___bit equ 6
        ; line_number = 200
        ; bind _lvdie = _pie2@5
_lvdie___byte equ _pie2
_lvdie___bit equ 5
        ; line_number = 201
        ; bind _bclie = _pie2@3
_bclie___byte equ _pie2
_bclie___bit equ 3
        ; line_number = 202
        ; bind _ccp3ie = _pie2@1
_ccp3ie___byte equ _pie2
_ccp3ie___bit equ 1
        ; line_number = 203
        ; bind _ccp2ie = _pie2@0
_ccp2ie___byte equ _pie2
_ccp2ie___bit equ 0

        ; line_number = 205
        ; register _pcon = 
_pcon equ 142
        ; line_number = 206
        ; bind _sboren = _pcon@2
_sboren___byte equ _pcon
_sboren___bit equ 2
        ; line_number = 207
        ; bind _por = _pcon@1
_por___byte equ _pcon
_por___bit equ 1
        ; line_number = 208
        ; bind _bor = _pcon@0
_bor___byte equ _pcon
_bor___bit equ 0

        ; line_number = 210
        ; register _osccon = 
_osccon equ 143
        ; line_number = 211
        ; bind _ircf2 = _osccon@6
_ircf2___byte equ _osccon
_ircf2___bit equ 6
        ; line_number = 212
        ; bind _ircf1 = _osccon@5
_ircf1___byte equ _osccon
_ircf1___bit equ 5
        ; line_number = 213
        ; bind _ircf0 = _osccon@4
_ircf0___byte equ _osccon
_ircf0___bit equ 4
        ; line_number = 214
        ; bind _osts = _osccon@3
_osts___byte equ _osccon
_osts___bit equ 3
        ; line_number = 215
        ; bind _iofs = _osccon@2
_iofs___byte equ _osccon
_iofs___bit equ 2
        ; line_number = 216
        ; bind _scs1 = _osccon@1
_scs1___byte equ _osccon
_scs1___bit equ 1
        ; line_number = 217
        ; bind _scs0 = _osccon@0
_scs0___byte equ _osccon
_scs0___bit equ 0

        ; line_number = 219
        ; register _osctune = 
_osctune equ 144
        ; line_number = 220
        ; bind _tun5 = _osctune@5
_tun5___byte equ _osctune
_tun5___bit equ 5
        ; line_number = 221
        ; bind _tun4 = _osctune@4
_tun4___byte equ _osctune
_tun4___bit equ 4
        ; line_number = 222
        ; bind _tun3 = _osctune@3
_tun3___byte equ _osctune
_tun3___bit equ 3
        ; line_number = 223
        ; bind _tun2 = _osctune@2
_tun2___byte equ _osctune
_tun2___bit equ 2
        ; line_number = 224
        ; bind _tun1 = _osctune@1
_tun1___byte equ _osctune
_tun1___bit equ 1
        ; line_number = 225
        ; bind _tun0 = _osctune@0
_tun0___byte equ _osctune
_tun0___bit equ 0

        ; line_number = 227
        ; register _sspcon2 = 
_sspcon2 equ 145
        ; line_number = 228
        ; bind _gcen = _sspcon2@7
_gcen___byte equ _sspcon2
_gcen___bit equ 7
        ; line_number = 229
        ; bind _ackstat = _sspcon2@6
_ackstat___byte equ _sspcon2
_ackstat___bit equ 6
        ; line_number = 230
        ; bind _ackdt = _sspcon2@5
_ackdt___byte equ _sspcon2
_ackdt___bit equ 5
        ; line_number = 231
        ; bind _acken = _sspcon2@4
_acken___byte equ _sspcon2
_acken___bit equ 4
        ; line_number = 232
        ; bind _rcen = _sspcon2@3
_rcen___byte equ _sspcon2
_rcen___bit equ 3
        ; line_number = 233
        ; bind _pen = _sspcon2@2
_pen___byte equ _sspcon2
_pen___bit equ 2
        ; line_number = 234
        ; bind _rsen = _sspcon2@1
_rsen___byte equ _sspcon2
_rsen___bit equ 1
        ; line_number = 235
        ; bind _sen = _sspcon2@0
_sen___byte equ _sspcon2
_sen___bit equ 0

        ; line_number = 237
        ; register _pr2 = 
_pr2 equ 146

        ; line_number = 239
        ; register _sspadd = 
_sspadd equ 147

        ; line_number = 241
        ; register _sspstat = 
_sspstat equ 148
        ; line_number = 242
        ; bind _smp = _sspstat@7
_smp___byte equ _sspstat
_smp___bit equ 7
        ; line_number = 243
        ; bind _cke = _sspstat@6
_cke___byte equ _sspstat
_cke___bit equ 6
        ; line_number = 244
        ; bind _da = _sspstat@5
_da___byte equ _sspstat
_da___bit equ 5
        ; line_number = 245
        ; bind _p = _sspstat@4
_p___byte equ _sspstat
_p___bit equ 4
        ; line_number = 246
        ; bind _s = _sspstat@3
_s___byte equ _sspstat
_s___bit equ 3
        ; line_number = 247
        ; bind _rw = _sspstat@2
_rw___byte equ _sspstat
_rw___bit equ 2
        ; line_number = 248
        ; bind _ua = _sspstat@1
_ua___byte equ _sspstat
_ua___bit equ 1
        ; line_number = 249
        ; bind _bf = _sspstat@0
_bf___byte equ _sspstat
_bf___bit equ 0

        ; line_number = 251
        ; register _ccpr3l = 
_ccpr3l equ 149

        ; line_number = 253
        ; register _ccpr3h = 
_ccpr3h equ 150

        ; line_number = 255
        ; register _ccp3con = 
_ccp3con equ 150
        ; line_number = 256
        ; bind _ccp3x = _ccp3con@5
_ccp3x___byte equ _ccp3con
_ccp3x___bit equ 5
        ; line_number = 257
        ; bind _ccp3y = _ccp3con@4
_ccp3y___byte equ _ccp3con
_ccp3y___bit equ 4
        ; line_number = 258
        ; bind _ccp3m3 = _ccp3con@3
_ccp3m3___byte equ _ccp3con
_ccp3m3___bit equ 3
        ; line_number = 259
        ; bind _ccp3m2 = _ccp3con@2
_ccp3m2___byte equ _ccp3con
_ccp3m2___bit equ 2
        ; line_number = 260
        ; bind _ccp3m1 = _ccp3con@1
_ccp3m1___byte equ _ccp3con
_ccp3m1___bit equ 1
        ; line_number = 261
        ; bind _ccp3m0 = _ccp3con@0
_ccp3m0___byte equ _ccp3con
_ccp3m0___bit equ 0

        ; line_number = 263
        ; register _txsta = 
_txsta equ 152
        ; line_number = 264
        ; bind _csrc = _txsta@7
_csrc___byte equ _txsta
_csrc___bit equ 7
        ; line_number = 265
        ; bind _tx9 = _txsta@6
_tx9___byte equ _txsta
_tx9___bit equ 6
        ; line_number = 266
        ; bind _txen = _txsta@5
_txen___byte equ _txsta
_txen___bit equ 5
        ; line_number = 267
        ; bind _sync = _txsta@4
_sync___byte equ _txsta
_sync___bit equ 4
        ; line_number = 268
        ; bind _brgh = _txsta@2
_brgh___byte equ _txsta
_brgh___bit equ 2
        ; line_number = 269
        ; bind _trmt = _txsta@1
_trmt___byte equ _txsta
_trmt___bit equ 1
        ; line_number = 270
        ; bind _tx9d = _txsta@0
_tx9d___byte equ _txsta
_tx9d___bit equ 0

        ; line_number = 272
        ; register _spbrg = 
_spbrg equ 153

        ; line_number = 274
        ; register _adcon2 = 
_adcon2 equ 155
        ; line_number = 275
        ; bind _acqt2 = _adcon2@5
_acqt2___byte equ _adcon2
_acqt2___bit equ 5
        ; line_number = 276
        ; bind _acqt1 = _adcon2@4
_acqt1___byte equ _adcon2
_acqt1___bit equ 4
        ; line_number = 277
        ; bind _acqt0 = _adcon2@3
_acqt0___byte equ _adcon2
_acqt0___bit equ 3

        ; line_number = 279
        ; register _cmcon = 
_cmcon equ 156
        ; line_number = 280
        ; bind _c2out = _cmcon@7
_c2out___byte equ _cmcon
_c2out___bit equ 7
        ; line_number = 281
        ; bind _c1out = _cmcon@6
_c1out___byte equ _cmcon
_c1out___bit equ 6
        ; line_number = 282
        ; bind _c2inv = _cmcon@5
_c2inv___byte equ _cmcon
_c2inv___bit equ 5
        ; line_number = 283
        ; bind _c1inv = _cmcon@4
_c1inv___byte equ _cmcon
_c1inv___bit equ 4
        ; line_number = 284
        ; bind _cis = _cmcon@3
_cis___byte equ _cmcon
_cis___bit equ 3
        ; line_number = 285
        ; bind _cm2 = _cmcon@2
_cm2___byte equ _cmcon
_cm2___bit equ 2
        ; line_number = 286
        ; bind _cm1 = _cmcon@1
_cm1___byte equ _cmcon
_cm1___bit equ 1
        ; line_number = 287
        ; bind _cm0 = _cmcon@0
_cm0___byte equ _cmcon
_cm0___bit equ 0

        ; line_number = 289
        ; register _cvrcon = 
_cvrcon equ 157
        ; line_number = 290
        ; bind _cvren = _cvrcon@7
_cvren___byte equ _cvrcon
_cvren___bit equ 7
        ; line_number = 291
        ; bind _cvroe = _cvrcon@6
_cvroe___byte equ _cvrcon
_cvroe___bit equ 6
        ; line_number = 292
        ; bind _cvrr = _cvrcon@5
_cvrr___byte equ _cvrcon
_cvrr___bit equ 5
        ; line_number = 293
        ; bind _cvr3 = _cvrcon@3
_cvr3___byte equ _cvrcon
_cvr3___bit equ 3
        ; line_number = 294
        ; bind _cvr2 = _cvrcon@2
_cvr2___byte equ _cvrcon
_cvr2___bit equ 2
        ; line_number = 295
        ; bind _cvr1 = _cvrcon@1
_cvr1___byte equ _cvrcon
_cvr1___bit equ 1
        ; line_number = 296
        ; bind _cvr0 = _cvrcon@0
_cvr0___byte equ _cvrcon
_cvr0___bit equ 0

        ; line_number = 298
        ; register _adresl = 
_adresl equ 158

        ; line_number = 300
        ; register _adcon1 = 
_adcon1 equ 159
        ; line_number = 301
        ; bind _adfm = _adcon1@7
_adfm___byte equ _adcon1
_adfm___bit equ 7
        ; line_number = 302
        ; bind _adcs2 = _adcon1@6
_adcs2___byte equ _adcon1
_adcs2___bit equ 6
        ; line_number = 303
        ; bind _vfg1 = _adcon1@5
_vfg1___byte equ _adcon1
_vfg1___bit equ 5
        ; line_number = 304
        ; bind _vfg0 = _adcon1@4
_vfg0___byte equ _adcon1
_vfg0___bit equ 4
        ; line_number = 305
        ; bind _pcfg3 = _adcon1@3
_pcfg3___byte equ _adcon1
_pcfg3___bit equ 3
        ; line_number = 306
        ; bind _pcfg2 = _adcon1@2
_pcfg2___byte equ _adcon1
_pcfg2___bit equ 2
        ; line_number = 307
        ; bind _pcfg1 = _adcon1@1
_pcfg1___byte equ _adcon1
_pcfg1___bit equ 1
        ; line_number = 308
        ; bind _pcfg0 = _adcon1@0
_pcfg0___byte equ _adcon1
_pcfg0___bit equ 0

        ; # Bank 2:

        ; line_number = 312
        ; register _wdtcon = 
_wdtcon equ 261
        ; line_number = 313
        ; bind _wdtps3 = _wdtcon@4
_wdtps3___byte equ _wdtcon
_wdtps3___bit equ 4
        ; line_number = 314
        ; bind _wdtps2 = _wdtcon@3
_wdtps2___byte equ _wdtcon
_wdtps2___bit equ 3
        ; line_number = 315
        ; bind _wdtps1 = _wdtcon@2
_wdtps1___byte equ _wdtcon
_wdtps1___bit equ 2
        ; line_number = 316
        ; bind _wdtps0 = _wdtcon@1
_wdtps0___byte equ _wdtcon
_wdtps0___bit equ 1
        ; line_number = 317
        ; bind _swdten = _wdtcon@0
_swdten___byte equ _wdtcon
_swdten___bit equ 0

        ; line_number = 319
        ; register _lvdcon = 
_lvdcon equ 265
        ; line_number = 320
        ; bind _irvst = _lvdcon@5
_irvst___byte equ _lvdcon
_irvst___bit equ 5
        ; line_number = 321
        ; bind _lvden = _lvdcon@4
_lvden___byte equ _lvdcon
_lvden___bit equ 4
        ; line_number = 322
        ; bind _lvdl3 = _lvdcon@3
_lvdl3___byte equ _lvdcon
_lvdl3___bit equ 3
        ; line_number = 323
        ; bind _lvdl2 = _lvdcon@2
_lvdl2___byte equ _lvdcon
_lvdl2___bit equ 2
        ; line_number = 324
        ; bind _lvdl1 = _lvdcon@1
_lvdl1___byte equ _lvdcon
_lvdl1___bit equ 1
        ; line_number = 325
        ; bind _lvdl0 = _lvdcon@0
_lvdl0___byte equ _lvdcon
_lvdl0___bit equ 0

        ; line_number = 327
        ; register _pmdata = 
_pmdata equ 268

        ; line_number = 329
        ; register _pmadr = 
_pmadr equ 269

        ; line_number = 331
        ; register _pmdath = 
_pmdath equ 270

        ; line_number = 333
        ; register _pmadrh = 
_pmadrh equ 271

        ; # Bank 3:

        ; line_number = 337
        ; register _pmcon1 = 
_pmcon1 equ 396
        ; line_number = 338
        ; bind _rd = _pmcon1@0
_rd___byte equ _pmcon1
_rd___bit equ 0



        ; buffer = '_pic16f777'
        ; line_number = 398
        ; library _pic16f7x7 exited

        ; # Additional register and pin definitions:

        ; line_number = 402
        ; register _portd = 
_portd equ 8

        ; line_number = 404
        ; register _porte = 
_porte equ 9

        ; line_number = 406
        ; register _trisd = 
_trisd equ 136

        ; line_number = 408
        ; register _trise = 
_trise equ 137

        ; # Default configurations:


        ; buffer = 'buffer'
        ; line_number = 6
        ; library _pic16f777 exited
        ; line_number = 7
        ; library _uart entered
        ; # Copyright (c) 2004 by Wayne C. Gramlich.
        ; # All rights reserved.

        ; # This library contains some procedures for accessing the UART.

        ; Delaying code generation for procedure  _uart_byte_safe_get
        ; Delaying code generation for procedure  _uart_byte_get
        ; Delaying code generation for procedure  _uart_hex_put
        ; Delaying code generation for procedure  _uart_nibble_put
        ; Delaying code generation for procedure  _uart_space_put
        ; Delaying code generation for procedure  _uart_crlf_put
        ; Delaying code generation for procedure  _uart_byte_put

        ; line_number = 7
        ; library _uart exited
        ; line_number = 8
        ; library _clock20mhz entered
        ; # Copyright (c) 2004 by Wayne C. Gramlich
        ; # All rights reserved.

        ; # This library defines the contstants {clock_rate}, {instruction_rate},
        ; # and {clocks_per_instruction}.

        ; # Define processor constants:
        ; buffer = '_clock20mhz'
        ; line_number = 9
        ; constant _clock_rate = 20000000						
_clock_rate equ 20000000
        ; line_number = 10
        ; constant _clocks_per_instruction = 4
_clocks_per_instruction equ 4
        ; line_number = 11
        ; constant _clock_instruction_rate = _clock_rate / _clocks_per_instruction
_clock_instruction_rate equ 5000000


        ; buffer = 'buffer'
        ; line_number = 8
        ; library _clock20mhz exited

        ; line_number = 10
        ; package pdip
        ; line_number = 11
        ; pin 1 = re3_unused
        ; line_number = 12
        ;  pin 2 = ra0_out, name = a16
a16___byte equ _porta
a16___bit equ 0
        ; line_number = 13
        ;  pin 3 = ra1_out, name = a17
a17___byte equ _porta
a17___bit equ 1
        ; line_number = 14
        ;  pin 4 = ra2_out, name = a18
a18___byte equ _porta
a18___bit equ 2
        ; line_number = 15
        ;  pin 5 = ra3_unused
        ; line_number = 16
        ;  pin 6 = ra4_unused
        ; line_number = 17
        ;  pin 7 = ra5_unused
        ; line_number = 18
        ;  pin 8 = re0_unused
        ; line_number = 19
        ;  pin 9 = re1_unused
        ; line_number = 20
        ;  pin 10 = re2_unused
        ; line_number = 21
        ;  pin 11 = power_supply
        ; line_number = 22
        ;  pin 12 = ground
        ; line_number = 23
        ;  pin 13 = osc1
        ; line_number = 24
        ;  pin 14 = osc2
        ; line_number = 25
        ;  pin 15 = rc0_out, name = adrl
adrl___byte equ _portc
adrl___bit equ 0
        ; line_number = 26
        ;  pin 16 = rc1_out, name = adrm
adrm___byte equ _portc
adrm___bit equ 1
        ; line_number = 27
        ;  pin 17 = rc2_unused
        ; line_number = 28
        ;  pin 18 = rc3_unused
        ; line_number = 29
        ;  pin 19 = rd0_out, name = x_dir, bit = x_dir_bit, mask = x_dir_mask
x_dir___byte equ _portd
x_dir___bit equ 0
x_dir_bit equ 0
x_dir_mask equ 1
        ; line_number = 30
        ;  pin 20 = rd1_out, name = x_step, bit = x_step_bit, mask = x_step_mask
x_step___byte equ _portd
x_step___bit equ 1
x_step_bit equ 1
x_step_mask equ 2
        ; line_number = 31
        ;  pin 21 = rd2_out, name = y_dir, bit = y_dir_bit, mask = y_dir_mask
y_dir___byte equ _portd
y_dir___bit equ 2
y_dir_bit equ 2
y_dir_mask equ 4
        ; line_number = 32
        ;  pin 22 = rd3_out, name = y_step, bit = y_step_bit, mask = y_step_mask
y_step___byte equ _portd
y_step___bit equ 3
y_step_bit equ 3
y_step_mask equ 8
        ; line_number = 33
        ;  pin 23 = rc4_out, name = oe
oe___byte equ _portc
oe___bit equ 4
        ; line_number = 34
        ;  pin 24 = rc5_out, name = we
we___byte equ _portc
we___bit equ 5
        ; line_number = 35
        ;  pin 25 = tx
        ; line_number = 36
        ;  pin 26 = rx
        ; line_number = 37
        ;  pin 27 = rd4_out, name = z_dir, bit = z_dir_bit, mask = z_dir_mask
z_dir___byte equ _portd
z_dir___bit equ 4
z_dir_bit equ 4
z_dir_mask equ 16
        ; line_number = 38
        ;  pin 28 = rd5_out, name = z_step, bit = z_step_bit, mask = z_step_mask
z_step___byte equ _portd
z_step___bit equ 5
z_step_bit equ 5
z_step_mask equ 32
        ; line_number = 39
        ;  pin 29 = rd6_out, name = a_dir, bit = a_dir_bit, mask = a_dir_mask
a_dir___byte equ _portd
a_dir___bit equ 6
a_dir_bit equ 6
a_dir_mask equ 64
        ; line_number = 40
        ;  pin 30 = rd7_out, name = a_step, bit = a_step_bit, mask = a_step_mask
a_step___byte equ _portd
a_step___bit equ 7
a_step_bit equ 7
a_step_mask equ 128
        ; line_number = 41
        ;  pin 31 = ground2
        ; line_number = 42
        ;  pin 32 = power_supply2

        ; line_number = 44
        ;  pin 33 = rb0_out, name = m0
m0___byte equ _portb
m0___bit equ 0
        ; line_number = 45
        ;  pin 34 = rb1_out, name = m1
m1___byte equ _portb
m1___bit equ 1
        ; line_number = 46
        ;  pin 35 = rb2_out, name = m2
m2___byte equ _portb
m2___bit equ 2
        ; line_number = 47
        ;  pin 36 = rb3_out, name = m3
m3___byte equ _portb
m3___bit equ 3
        ; line_number = 48
        ;  pin 37 = rb4_out, name = m4
m4___byte equ _portb
m4___bit equ 4
        ; line_number = 49
        ;  pin 38 = rb5_out, name = m5
m5___byte equ _portb
m5___bit equ 5
        ; line_number = 50
        ;  pin 39 = rb6_out, name = m6
m6___byte equ _portb
m6___bit equ 6
        ; line_number = 51
        ;  pin 40 = rb7_out, name = m7
m7___byte equ _portb
m7___bit equ 7

        ; line_number = 53
        ; constant dir_mask = x_dir_mask | y_dir_mask | z_dir_mask | a_dir_mask
dir_mask equ 85
        ; line_number = 54
        ; constant step_mask = x_step_mask | y_step_mask | z_step_mask | a_step_mask
step_mask equ 170

        ; line_number = 56
        ; constant microsecond = _clock_instruction_rate / 1000000
microsecond equ 5
        ; line_number = 57
        ; constant delay_amount = 20 * microsecond
delay_amount equ 100
        ; line_number = 58
        ; constant tmr0_prescale_power = 1
tmr0_prescale_power equ 1
        ; line_number = 59
        ; constant tmr0_prescale = 1 << tmr0_prescale_power
tmr0_prescale equ 2
        ; line_number = 60
        ; constant interrupt_cycles = 11
interrupt_cycles equ 11
        ; line_number = 61
        ; constant tmr0_reset = 256 - ((delay_amount - interrupt_cycles) >> tmr0_prescale_power) 
tmr0_reset equ 212

        ; # Compute the baud rate:
        ; # Baud rates are computed using the following formula:
        ; #
        ; #   baud_rate = Fosc / (16 * (spbrg + 1))                      (1)
        ; #
        ; # Solving for spbrg:
        ; #
        ; #   spbrg = Fosc / (16 * baud_rate) - 1                        (2)
        ; #
        ; # In order to deal with rounding errors we need to add .5
        ; # to spbrg.  This results in the following equation:
        ; #
        ; #   spbrg = (Fosc - 8 - baud_rate/2) / (16 * baud_rate)        (3)
        ; #
        ; # Lastly, the percentage of error is:
        ; #
        ; #   error = (generated_baud_rate - desired_baud_rate) /	       (4)
        ; #           desired_baud_rate
        ; #
        ; # Computing as a percentage:
        ; #
        ; #  error = (Fosc / (16 * (spbrg + 1) - baud_rate) / baud_rate  (5)

        ; # Baud rate 19200:
        ; line_number = 88
        ; constant spbrg_19200 = (_clock_rate - 8 * 19200/2) / (16 * 19200)
spbrg_19200 equ 64
        ; line_number = 89
        ; constant actual_rate_19200 = _clock_rate / (16 * (spbrg_19200 + 1))
actual_rate_19200 equ 19230
        ; line_number = 90
        ; constant error_19200 = 100 * (actual_rate_19200 - 19200) / 19200
error_19200 equ 0

        ; # Baud rate 57600:
        ; line_number = 93
        ; constant spbrg_57600 = (_clock_rate - 8 * 57600/2) / (16 * 57600)
spbrg_57600 equ 21
        ; line_number = 94
        ; constant actual_rate_57600 = _clock_rate / (16 * (spbrg_57600 + 1))
actual_rate_57600 equ 56818
        ; line_number = 95
        ; constant error_57600 = 100 * (actual_rate_57600 - 57600) / 57600
error_57600 equ 74564

        ; # Baud rate 115200:
        ; line_number = 98
        ; constant spbrg_115200 = (_clock_rate - 8 * 115200/2) / (16 * 115200)
spbrg_115200 equ 10
        ; line_number = 99
        ; constant actual_rate_115200 = _clock_rate / (16 * (spbrg_115200 + 1))
actual_rate_115200 equ 113636
        ; line_number = 100
        ; constant error_115200 = 100 * (115200 - actual_rate_115200) / 115200
error_115200 equ 1

        ; # The circular buffer for interrupt routine:
        ; line_number = 103
        ; constant buffer_power = 5
buffer_power equ 5
        ; line_number = 104
        ; constant buffer_size = 1 << buffer_power
buffer_size equ 32
        ; line_number = 105
        ; constant buffer_mask = buffer_size - 1
buffer_mask equ 31
        ; line_number = 106
        ; global buffer[buffer_size] array[byte]
buffer equ globals___0+3
        ; line_number = 107
        ; global buffer_in byte
buffer_in equ globals___0+35
        ; line_number = 108
        ; global buffer_out byte
buffer_out equ globals___0+36
        ; line_number = 109
        ; global buffer_amount byte
buffer_amount equ globals___0+37
        ; line_number = 110
        ; global buffer_byte byte
buffer_byte equ globals___0+38
        ; line_number = 111
        ; global buffer_command byte
buffer_command equ globals___0+39
        ; line_number = 112
        ; global buffer_command_ready bit
buffer_command_ready___byte equ globals___0+79
buffer_command_ready___bit equ 0

        ; line_number = 114
        ; global control byte
control equ globals___0+40
        ; line_number = 115
        ; global address_low byte
address_low equ globals___0+41
        ; line_number = 116
        ; global address_middle byte
address_middle equ globals___0+42
        ; line_number = 117
        ; global address_high byte
address_high equ globals___0+43

        ; # Memory chip in and out addresses:
        ; line_number = 120
        ; global memory_in_high byte
memory_in_high equ globals___0+44
        ; line_number = 121
        ; global memory_in_middle byte
memory_in_middle equ globals___0+45
        ; line_number = 122
        ; global memory_in_low byte
memory_in_low equ globals___0+46
        ; line_number = 123
        ; global memory_rollback_high byte
memory_rollback_high equ globals___0+47
        ; line_number = 124
        ; global memory_rollback_middle byte
memory_rollback_middle equ globals___0+48
        ; line_number = 125
        ; global memory_rollback_low byte
memory_rollback_low equ globals___0+49
        ; line_number = 126
        ; global memory_out_high byte
memory_out_high equ globals___0+50
        ; line_number = 127
        ; global memory_out_middle byte
memory_out_middle equ globals___0+51
        ; line_number = 128
        ; global memory_out_low byte
memory_out_low equ globals___0+52
        ; line_number = 129
        ; global chunk_current byte
chunk_current equ globals___0+53
        ; line_number = 130
        ; global chunk_enabled byte
chunk_enabled equ globals___0+54
        ; line_number = 131
        ; global checksum_low byte
checksum_low equ globals___0+55
        ; line_number = 132
        ; global checksum_high byte
checksum_high equ globals___0+56
        ; line_number = 133
        ; global repeat bit
repeat___byte equ globals___0+79
repeat___bit equ 1

        ; line_number = 135
        ; global command byte
command equ globals___0+57
        ; line_number = 136
        ; global delay_a byte
delay_a equ globals___0+58
        ; line_number = 137
        ; global delay_b byte
delay_b equ globals___0+59
        ; line_number = 138
        ; global delay_c byte
delay_c equ globals___0+60
        ; line_number = 139
        ; global delay_high byte
delay_high equ globals___0+61
        ; line_number = 140
        ; global delay_low byte
delay_low equ globals___0+62
        ; line_number = 141
        ; global directions byte
directions equ globals___0+63

        ; line_number = 143
        ; global interrupts byte
interrupts equ globals___0+64

        ; line_number = 145
        ; bind step_dir_port = _portd
step_dir_port equ _portd
        ; line_number = 146
        ; bind memory_port = _portb
memory_port equ _portb
        ; line_number = 147
        ; bind memory_tris = _trisb
memory_tris equ _trisb

        ; line_number = 149
        ; global reads_low byte
reads_low equ globals___0+65
        ; line_number = 150
        ; global reads_high byte
reads_high equ globals___0+66

        ; line_number = 152
        ; share fsr_save byte
fsr_save equ shared___globals

        ; line_number = 154
        ; origin 0
        org     0

        ; line_number = 156
        ;info   156, 0
        ; procedure start
start:
        ; arguments_none
        ; line_number = 158
        ;  returns_nothing

        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 160
        ;  assemble
        ;info   160, 0
        ; line_number = 161
        ;info   161, 0
        goto    main

        ; delay after procedure statements=non-uniform
        ; Implied return
        retlw   0




        ; line_number = 163
        ; origin 4
        org     4

        ; line_number = 165
        ;info   165, 4
        ; procedure interrupt
interrupt:
interrupt___w_save equ shared___globals+2
interrupt___status_save equ shared___globals+1
        ; Carefully save __w and __tatus into RAM
        ; Save W first (easy)
        movwf   interrupt___w_save
        ; Save Status without smashing it (tricky)
        ; Move swapped version of status into W
        swapf   __status,w
        ; Store swapped version of status into RAM
        movwf   interrupt___status_save
        ; arguments_none
        ; line_number = 167
        ;  returns_nothing

        ; #local fsr_save byte
        ; line_number = 170
        ;  local offset byte
interrupt__offset equ globals___0+67

        ; # We want the step lines to be cleared for at least 2uSec.
        ; # We clear them first thing.  By the time we get around to
        ; # assigning to portb again, at least 2uSec will have elapsed.

        ; # (port B assigned at cycle 6)
        ; #step_dir_port := step_dir_port & dir_mask
        ; before procedure statements delay=non-uniform, bit states=(data:??=>?? code:00=>00)
        ; line_number = 178
        ;  _tmr0if := _false
        ;info   178, 7
        bcf     _tmr0if___byte, _tmr0if___bit
        ; line_number = 179
        ;  _tmr0 := tmr0_reset
        ;info   179, 8
        movlw   212
        bcf     __rp0___byte, __rp0___bit
        movwf   _tmr0
        ; line_number = 180
        ;  interrupts := interrupts + 1
        ;info   180, 11
        bcf     __rp1___byte, __rp1___bit
        incf    interrupts,f

        ; # Evenutally, the uCL compiler will be smart enough to
        ; # save FSR, but for now it is not.  Thus, we need to do it
        ; # ourselves:
        ; line_number = 185
        ;  fsr_save := _fsr
        ;info   185, 13
        movf    _fsr,w
        movwf   fsr_save

        ; line_number = 187
        ;  buffer_amount := buffer_amount - 1
        ;info   187, 15
        decf    buffer_amount,f
        ; line_number = 188
        ;  if _z start
        ;info   188, 16
        ; =>bit_code_emit@symbol(): sym=_z
        ; No 1TEST: true.size=1 false.size=8
        ; No 2TEST: true.size=1 false.size=8
        ; 2GOTO: Single test with two GOTO's
        btfss   _z___byte, _z___bit
        goto    interrupt__1
        ; line_number = 189
        ; _tmr0ie := _false
        ;info   189, 18
        bcf     _tmr0ie___byte, _tmr0ie___bit
        ; Recombine code1_bit_states != code2_bit_states
        goto    interrupt__2
        ; 2GOTO: Starting code 2
interrupt__1:
        ; line_number = 191
        ; step_dir_port := buffer[buffer_out & buffer_mask]
        ;info   191, 20
        movlw   31
        andwf   buffer_out,w
        addlw   buffer
        movwf   __fsr
        bcf     __irp___byte, __irp___bit
        movf    __indf,w
        movwf   step_dir_port
        ; # (port B assigned at cycle 21)
        ; line_number = 193
        ;  buffer_out := buffer_out + 1
        ;info   193, 27
        incf    buffer_out,f

interrupt__2:
        ; 2GOTO: code1 final bitstates:(data:XX=>XX code:XX=>XX)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code final bitstates:(data:??=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=_z (data:??=>00 code:00=>00)
        ; line_number = 188
        ;  if _z done
        ; # Restore FSR and return:
        ; line_number = 196
        ;  _fsr := fsr_save
        ;info   196, 28
        movf    fsr_save,w
        movwf   _fsr


        ; delay after procedure statements=non-uniform
        ; Interrupt return
        ; Carefully restore __w and __tatus from RAM
        ; Restore swapped status into W
        swapf   interrupt___status_save,w
        ; W now contains (unswapped) status
        ; Restore W to __status
        movwf   __status
        ; From here on out, do not modify __status
        ; Swap saved W register in RAM
        swapf   interrupt___w_save,f
        ; Unswap the saved W reg and restore to W
        swapf   interrupt___w_save,w
        ; __w and __status are now restored
        ; Return from interrupt
        retfie  




        ; line_number = 199
        ;info   199, 35
        ; procedure main
main:
        ; Initialize some registers
        clrf    _adcon0
        movlw   15
        bsf     __rp0___byte, __rp0___bit
        movwf   _adcon1
        clrf    _trisa
        clrf    _trisb
        movlw   128
        movwf   _trisc
        clrf    _trisd
        ; arguments_none
        ; line_number = 201
        ;  returns_nothing

        ; line_number = 203
        ;  local commmand byte
main__commmand equ globals___0+68

        ; before procedure statements delay=non-uniform, bit states=(data:00=>01 code:00=>00)
        ; line_number = 205
        ;  reads_low := 0
        ;info   205, 44
        bcf     __rp0___byte, __rp0___bit
        clrf    reads_low
        ; line_number = 206
        ;  reads_high := 0
        ;info   206, 46
        clrf    reads_high

        ; # Initalize everything here:
        ; line_number = 209
        ;  call initialize(spbrg_115200)
        ;info   209, 47
        movlw   10
        call    initialize

        ; line_number = 211
        ;  loop_forever start
        ;info   211, 49
main__1:
        ; # Stripped down test code:
        ; #if _rcif
        ; #    # Read the UART:
        ; #    command := _rcreg
        ; #    reads_low := reads_low + 1
        ; #    if _z
        ; #	reads_high := reads_high + 1
        ; #    if _oerr
        ; #	# We had an overrun error, clear it:
        ; #	_cren := 0
        ; #	_cren := 1

        ; #    if command = 0xff
        ; #	call _uart_byte_put('#')
        ; #	call _uart_byte_put(memory_in_high)
        ; #	call _uart_byte_put(memory_in_middle)
        ; #	call _uart_byte_put(memory_in_low)
        ; #	call _uart_byte_put(memory_out_high)
        ; #	call _uart_byte_put(memory_out_middle)
        ; #	call _uart_byte_put(memory_out_low)
        ; #	call _uart_byte_put(reads_high)
        ; #	call _uart_byte_put(reads_low)
        ; #	reads_high := 0
        ; #	reads_low := 0
        ; #    else_if command = 0xef
        ; #	call _uart_byte_put('!')

        ; line_number = 239
        ;  if _rcif start
        ;info   239, 49
        ; =>bit_code_emit@symbol(): sym=_rcif
        ; 1TEST: Single test with code in skip slot
        btfsc   _rcif___byte, _rcif___bit
        ; line_number = 240
        ; call fetch_byte()
        ;info   240, 50
        call    fetch_byte

        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=_rcif (data:00=>00 code:00=>00)
        ; line_number = 239
        ;  if _rcif done
        ; line_number = 242
        ; if chunk_current != chunk_enabled start
        ;info   242, 51
        ; Left minus Right
        movf    chunk_enabled,w
        subwf   chunk_current,w
        ; =>bit_code_emit@symbol(): sym=__z
        ; No 1TEST: true.size=0 false.size=182
        ; No 2TEST: true.size=0 false.size=182
        ; 1GOTO: Single test with GOTO
        btfsc   __z___byte, __z___bit
        goto    main__56
        ; # We have data in the memory chip to be processed:
        ; line_number = 244
        ;  if buffer_amount@buffer_power start
        ;info   244, 55
main__select__53___byte equ buffer_amount
main__select__53___bit equ 5
        ; =>bit_code_emit@symbol(): sym=main__select__53
        ; No 1TEST: true.size=7 false.size=172
        ; No 2TEST: true.size=7 false.size=172
        ; 2GOTO: Single test with two GOTO's
        btfss   main__select__53___byte, main__select__53___bit
        goto    main__54
        ; # The step buffer is full; we need to wait until there
        ; # is some space in there:
        ; line_number = 247
        ;  if !_tmr0ie start
        ;info   247, 57
        ; =>bit_code_emit@symbol(): sym=_tmr0ie
        ; No 1TEST: true.size=0 false.size=5
        ; No 2TEST: true.size=0 false.size=5
        ; 1GOTO: Single test with GOTO
        btfsc   _tmr0ie___byte, _tmr0ie___bit
        goto    main__52
        ; # Turn on the interrupts to start flushing it out:
        ; line_number = 249
        ;  _tmr0 := 0xfa
        ;info   249, 59
        movlw   250
        movwf   _tmr0
        ; line_number = 250
        ;  _tmr0if := _false
        ;info   250, 61
        bcf     _tmr0if___byte, _tmr0if___bit
        ; line_number = 251
        ;  _gie := _true
        ;info   251, 62
        bsf     _gie___byte, _gie___bit
        ; line_number = 252
        ;  _tmr0ie := _true
        ;info   252, 63
        bsf     _tmr0ie___byte, _tmr0ie___bit
main__52:
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=_tmr0ie (data:X0=>X0 code:00=>00)
        ; line_number = 247
        ;  if !_tmr0ie done
        ; Recombine code1_bit_states != code2_bit_states
        goto    main__55
        ; 2GOTO: Starting code 2
main__54:
        ; line_number = 253
        ;info   253, 65
        ; =>bit_code_emit@symbol(): sym=buffer_command_ready
        ; No 1TEST: true.size=25 false.size=144
        ; No 2TEST: true.size=25 false.size=144
        ; 2GOTO: Single test with two GOTO's
        btfss   buffer_command_ready___byte, buffer_command_ready___bit
        goto    main__50
        ; # There is some space in steps buffer and we have a
        ; # a command to process:
        ; line_number = 256
        ;  buffer_byte := directions
        ;info   256, 67
        movf    directions,w
        movwf   buffer_byte
        ; line_number = 257
        ;  if delay_low = 0 start
        ;info   257, 69
        ; Left minus Right
        movf    delay_low,w
        ; =>bit_code_emit@symbol(): sym=__z
        ; No 1TEST: true.size=9 false.size=1
        ; No 2TEST: true.size=9 false.size=1
        ; 2GOTO: Single test with two GOTO's
        btfss   __z___byte, __z___bit
        goto    main__48
        ; line_number = 258
        ; if delay_high = 0 start
        ;info   258, 72
        ; Left minus Right
        movf    delay_high,w
        ; =>bit_code_emit@symbol(): sym=__z
        ; No 1TEST: true.size=3 false.size=2
        ; No 2TEST: true.size=3 false.size=2
        ; 2GOTO: Single test with two GOTO's
        btfss   __z___byte, __z___bit
        goto    main__46
        ; # The delay is zero, now stuff a {buffer_byte} into
        ; # the circular buffer:
        ; line_number = 261
        ;  buffer_byte := buffer_command
        ;info   261, 75
        movf    buffer_command,w
        movwf   buffer_byte
        ; # Force the next byte in the memory chip to be
        ; # processed:
        ; line_number = 264
        ;  buffer_command_ready := _false
        ;info   264, 77
        bcf     buffer_command_ready___byte, buffer_command_ready___bit
        goto    main__47
        ; 2GOTO: Starting code 2
main__46:
        ; line_number = 266
        ; delay_high := delay_high - 1
        ;info   266, 79
        decf    delay_high,f
        ; line_number = 267
        ;  delay_low := delay_low - 1
        ;info   267, 80
        decf    delay_low,f
main__47:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=__z (data:00=>00 code:00=>00)
        ; line_number = 258
        ; if delay_high = 0 done
        ; Recombine code1_bit_states != code2_bit_states
        goto    main__49
        ; 2GOTO: Starting code 2
main__48:
        ; line_number = 269
        ; delay_low := delay_low - 1
        ;info   269, 82
        decf    delay_low,f

main__49:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=__z (data:00=>00 code:00=>00)
        ; line_number = 257
        ;  if delay_low = 0 done
        ; # Put {buffer_byte} into the buffer:
        ; line_number = 272
        ;  buffer[buffer_in & buffer_mask] := buffer_byte
        ;info   272, 83
        ; index_fsr_first
        movlw   31
        andwf   buffer_in,w
        addlw   buffer
        movwf   __fsr
        bcf     __irp___byte, __irp___bit
        movf    buffer_byte,w
        movwf   __indf
        ; line_number = 273
        ;  buffer_in := buffer_in + 1
        ;info   273, 90
        incf    buffer_in,f
        ; line_number = 274
        ;  buffer_amount := buffer_amount + 1
        ;info   274, 91
        incf    buffer_amount,f
        goto    main__51
        ; 2GOTO: Starting code 2
main__50:
        ; # There is some space in the steps buffer and we need
        ; # to get a command ready for it:

        ; # Read the next command from the memory chip:

        ; # Set the memory address:
        ; line_number = 282
        ;  _porta := memory_out_high
        ;info   282, 93
        movf    memory_out_high,w
        movwf   _porta
        ; line_number = 283
        ;  a17 := _true
        ;info   283, 95
        bsf     a17___byte, a17___bit
        ; line_number = 284
        ;  memory_port := memory_out_middle
        ;info   284, 96
        movf    memory_out_middle,w
        movwf   memory_port
        ; line_number = 285
        ;  adrm := _true
        ;info   285, 98
        bsf     adrm___byte, adrm___bit
        ; line_number = 286
        ;  adrm := _false
        ;info   286, 99
        bcf     adrm___byte, adrm___bit
        ; line_number = 287
        ;  memory_port := memory_out_low
        ;info   287, 100
        movf    memory_out_low,w
        movwf   memory_port
        ; line_number = 288
        ;  adrl := _true
        ;info   288, 102
        bsf     adrl___byte, adrl___bit
        ; line_number = 289
        ;  adrl := _false
        ;info   289, 103
        bcf     adrl___byte, adrl___bit

        ; # Read the data byte:
        ; line_number = 292
        ;  memory_tris := 0xff
        ;info   292, 104
        movlw   255
        bsf     __rp0___byte, __rp0___bit
        movwf   memory_tris
        ; line_number = 293
        ;  oe := _false
        ;info   293, 107
        bcf     __rp0___byte, __rp0___bit
        bcf     oe___byte, oe___bit
        ; line_number = 294
        ;  command := memory_port
        ;info   294, 109
        movf    memory_port,w
        movwf   command
        ; line_number = 295
        ;  oe := _true
        ;info   295, 111
        bsf     oe___byte, oe___bit
        ; line_number = 296
        ;  memory_tris := 0
        ;info   296, 112
        bsf     __rp0___byte, __rp0___bit
        clrf    memory_tris

        ; # Increment the memory address:
        ; line_number = 299
        ;  memory_out_low := memory_out_low + 1
        ;info   299, 114
        bcf     __rp0___byte, __rp0___bit
        incf    memory_out_low,f
        ; line_number = 300
        ;  if _z start
        ;info   300, 116
        ; =>bit_code_emit@symbol(): sym=_z
        ; No 1TEST: true.size=3 false.size=0
        ; No 2TEST: true.size=3 false.size=0
        ; 1GOTO: Single test with GOTO
        btfss   _z___byte, _z___bit
        goto    main__2
        ; line_number = 301
        ; memory_out_middle := memory_out_middle + 1
        ;info   301, 118
        incf    memory_out_middle,f
        ; line_number = 302
        ;  if _z start
        ;info   302, 119
        ; =>bit_code_emit@symbol(): sym=_z
        ; 1TEST: Single test with code in skip slot
        btfsc   _z___byte, _z___bit
        ; line_number = 303
        ; memory_out_high := memory_out_high + 1
        ;info   303, 120
        incf    memory_out_high,f

        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=_z (data:00=>00 code:XX=>XX)
        ; line_number = 302
        ;  if _z done
        ; Recombine size1 = 0 || size2 = 0
main__2:
        ; <=bit_code_emit@symbol; sym=_z (data:00=>00 code:00=>00)
        ; line_number = 300
        ;  if _z done
        ; # Decode the command:
        ; line_number = 306
        ;  if command@7 start
        ;info   306, 121
main__select__43___byte equ command
main__select__43___bit equ 7
        ; =>bit_code_emit@symbol(): sym=main__select__43
        ; No 1TEST: true.size=56 false.size=57
        ; No 2TEST: true.size=56 false.size=57
        ; 2GOTO: Single test with two GOTO's
        btfss   main__select__43___byte, main__select__43___bit
        goto    main__44
        ; # 1xxx xxxx:
        ; line_number = 308
        ;  if command@6 start
        ;info   308, 123
main__select__40___byte equ command
main__select__40___bit equ 6
        ; =>bit_code_emit@symbol(): sym=main__select__40
        ; No 1TEST: true.size=29 false.size=24
        ; No 2TEST: true.size=29 false.size=24
        ; 2GOTO: Single test with two GOTO's
        btfss   main__select__40___byte, main__select__40___bit
        goto    main__41
        ; # 11xx xxxx:
        ; line_number = 310
        ;  if command = 0xff || command = 0xf8 start
        ;info   310, 125
        ; Left minus Right
        incf    command,w
        ; =>bit_code_emit@symbol(): sym=__z
        ; No 1TEST: true.size=1 false.size=26
        ; No 2TEST: true.size=1 false.size=26
        ; 2GOTO: Single test with two GOTO's
        btfsc   __z___byte, __z___bit
        goto    main__38
        ; Recombine code1_bit_states != code2_bit_states
        ; &&||: index=1 true_delay=4294967295 false_delay=4294967295 goto_delay=4294967295
        ; Left minus Right
        movlw   8
        addwf   command,w
        ; =>bit_code_emit@symbol(): sym=__z
        ; No 1TEST: true.size=22 false.size=0
        ; No 2TEST: true.size=22 false.size=0
        ; 1GOTO: Single test with GOTO
        btfss   __z___byte, __z___bit
        goto    main__39
main__38:
        ; # We just finished a block:
        ; line_number = 312
        ;  buffer_command_ready := _false
        ;info   312, 132
        bcf     buffer_command_ready___byte, buffer_command_ready___bit
        ; line_number = 313
        ;  delay_a := 0
        ;info   313, 133
        clrf    delay_a
        ; line_number = 314
        ;  delay_b := 0
        ;info   314, 134
        clrf    delay_b
        ; line_number = 315
        ;  delay_c := 0
        ;info   315, 135
        clrf    delay_c
        ; line_number = 316
        ;  delay_high := 0
        ;info   316, 136
        clrf    delay_high
        ; line_number = 317
        ;  delay_low := 0
        ;info   317, 137
        clrf    delay_low
        ; line_number = 318
        ;  reads_high := 0
        ;info   318, 138
        clrf    reads_high
        ; line_number = 319
        ;  reads_low := 0
        ;info   319, 139
        clrf    reads_low
        ; line_number = 320
        ;  if repeat start
        ;info   320, 140
        ; =>bit_code_emit@symbol(): sym=repeat
        ; No 1TEST: true.size=8 false.size=3
        ; No 2TEST: true.size=8 false.size=3
        ; 2GOTO: Single test with two GOTO's
        btfss   repeat___byte, repeat___bit
        goto    main__36
        ; # Reprocess the first block:
        ; line_number = 322
        ;  memory_out_low := 0
        ;info   322, 142
        clrf    memory_out_low
        ; line_number = 323
        ;  memory_out_middle := 0
        ;info   323, 143
        clrf    memory_out_middle
        ; line_number = 324
        ;  memory_out_high := 0
        ;info   324, 144
        clrf    memory_out_high
        ; # Force a delay before repeating:
        ; line_number = 326
        ;  delay_high := 0x20
        ;info   326, 145
        movlw   32
        movwf   delay_high
        ; line_number = 327
        ;  buffer_command := directions
        ;info   327, 147
        movf    directions,w
        movwf   buffer_command
        ; line_number = 328
        ;  buffer_command_ready := _true
        ;info   328, 149
        bsf     buffer_command_ready___byte, buffer_command_ready___bit
        goto    main__37
        ; 2GOTO: Starting code 2
main__36:
        ; line_number = 330
        ; chunk_current := (chunk_current + 1) & 7
        ;info   330, 151
        incf    chunk_current,w
        andlw   7
        movwf   chunk_current
        ; #call _uart_byte_put('~')
main__37:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=repeat (data:00=>00 code:00=>00)
        ; line_number = 320
        ;  if repeat done
        ; Recombine size1 = 0 || size2 = 0
main__39:
        ; <=bit_code_emit@symbol; sym=__z (data:00=>00 code:00=>00)
        ; &&||: index=0 true_delay=4294967295 false_delay=4294967295 goto_delay=4294967295
        ; &&||:: index=0 new_delay=4294967295 goto_delay=4294967295
        ; 2GOTO: No goto needed; true=main__38 false= true_size=1 false_size=26
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code2 final bitstates:(data:XX=>XX code:00=>00)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=__z (data:00=>00 code:00=>00)
        ; line_number = 310
        ;  if command = 0xff || command = 0xf8 done
        goto    main__42
        ; 2GOTO: Starting code 2
main__41:
        ; # 10xx xxxx:
        ; line_number = 334
        ;  if command@5 start
        ;info   334, 155
main__select__33___byte equ command
main__select__33___bit equ 5
        ; =>bit_code_emit@symbol(): sym=main__select__33
        ; No 1TEST: true.size=15 false.size=6
        ; No 2TEST: true.size=15 false.size=6
        ; 2GOTO: Single test with two GOTO's
        btfss   main__select__33___byte, main__select__33___bit
        goto    main__34
        ; # 101x xxxx:
        ; line_number = 336
        ;  if command@4 start
        ;info   336, 157
main__select__30___byte equ command
main__select__30___bit equ 4
        ; =>bit_code_emit@symbol(): sym=main__select__30
        ; No 1TEST: true.size=9 false.size=3
        ; No 2TEST: true.size=9 false.size=3
        ; 2GOTO: Single test with two GOTO's
        btfss   main__select__30___byte, main__select__30___bit
        goto    main__31
        ; # 1011 axyz (SetDirection) [Bx]:
        ; line_number = 338
        ;  directions := 0
        ;info   338, 159
        clrf    directions
        ; line_number = 339
        ;  if command@3 start
        ;info   339, 160
main__select__23___byte equ command
main__select__23___bit equ 3
        ; =>bit_code_emit@symbol(): sym=main__select__23
        ; 1TEST: Single test with code in skip slot
        btfsc   main__select__23___byte, main__select__23___bit
        ; line_number = 340
        ; directions@a_dir_bit := _true
        ;info   340, 161
main__select__22___byte equ directions
main__select__22___bit equ 6
        bsf     main__select__22___byte, main__select__22___bit
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=main__select__23 (data:00=>00 code:XX=>XX)
        ; line_number = 339
        ;  if command@3 done
        ; line_number = 341
        ; if command@2 start
        ;info   341, 162
main__select__25___byte equ command
main__select__25___bit equ 2
        ; =>bit_code_emit@symbol(): sym=main__select__25
        ; 1TEST: Single test with code in skip slot
        btfsc   main__select__25___byte, main__select__25___bit
        ; line_number = 342
        ; directions@x_dir_bit := _true
        ;info   342, 163
main__select__24___byte equ directions
main__select__24___bit equ 0
        bsf     main__select__24___byte, main__select__24___bit
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=main__select__25 (data:00=>00 code:XX=>XX)
        ; line_number = 341
        ; if command@2 done
        ; line_number = 343
        ; if command@1 start
        ;info   343, 164
main__select__27___byte equ command
main__select__27___bit equ 1
        ; =>bit_code_emit@symbol(): sym=main__select__27
        ; 1TEST: Single test with code in skip slot
        btfsc   main__select__27___byte, main__select__27___bit
        ; line_number = 344
        ; directions@y_dir_bit := _true
        ;info   344, 165
main__select__26___byte equ directions
main__select__26___bit equ 2
        bsf     main__select__26___byte, main__select__26___bit
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=main__select__27 (data:00=>00 code:XX=>XX)
        ; line_number = 343
        ; if command@1 done
        ; line_number = 345
        ; if command@0 start
        ;info   345, 166
main__select__29___byte equ command
main__select__29___bit equ 0
        ; =>bit_code_emit@symbol(): sym=main__select__29
        ; 1TEST: Single test with code in skip slot
        btfsc   main__select__29___byte, main__select__29___bit
        ; line_number = 346
        ; directions@z_dir_bit := _true
        ;info   346, 167
main__select__28___byte equ directions
main__select__28___bit equ 4
        bsf     main__select__28___byte, main__select__28___bit
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=main__select__29 (data:00=>00 code:XX=>XX)
        ; line_number = 345
        ; if command@0 done
        goto    main__32
        ; 2GOTO: Starting code 2
main__31:
        ; # 1010 cccc (Set C) [Ax]:
        ; line_number = 349
        ;  delay_c := command & 0xf
        ;info   349, 169
        movlw   15
        andwf   command,w
        movwf   delay_c
main__32:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=main__select__30 (data:00=>00 code:00=>00)
        ; line_number = 336
        ;  if command@4 done
        ; Recombine code1_bit_states != code2_bit_states
        goto    main__35
        ; 2GOTO: Starting code 2
main__34:
        ; # 100x xxxx:
        ; line_number = 352
        ;  if command@4 start
        ;info   352, 173
main__select__21___byte equ command
main__select__21___bit equ 4
        ; =>bit_code_emit@symbol(): sym=main__select__21
        ; # 1001 bbbb (Set B) [9x]:
        ; line_number = 354
        ;  delay_b := command & 0xf
        ;info   354, 173
        movlw   15
        andwf   command,w
        ; # 1000 aaaa (Set A) [8x]:
        ; line_number = 357
        ;  delay_a := command & 0xf
        ;info   357, 175
        ; No 1TEST: true.size=1 false.size=1
        ; 2TEST: two tests with code in both delay slots
        btfsc   main__select__21___byte, main__select__21___bit
        movwf   delay_b
        btfss   main__select__21___byte, main__select__21___bit
        movwf   delay_a
        ; <=bit_code_emit@symbol; sym=main__select__21 (data:00=>00 code:XX=>XX)
        ; line_number = 352
        ;  if command@4 done
main__35:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=main__select__33 (data:00=>00 code:00=>00)
        ; line_number = 334
        ;  if command@5 done
main__42:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=main__select__40 (data:00=>00 code:00=>00)
        ; line_number = 308
        ;  if command@6 done
        goto    main__45
        ; 2GOTO: Starting code 2
main__44:
        ; # 0ddc axyz (Step):
        ; line_number = 360
        ;  if command@4 start
        ;info   360, 180
main__select__5___byte equ command
main__select__5___bit equ 4
        ; =>bit_code_emit@symbol(): sym=main__select__5
        ; No 1TEST: true.size=6 false.size=9
        ; No 2TEST: true.size=6 false.size=9
        ; 2GOTO: Single test with two GOTO's
        btfss   main__select__5___byte, main__select__5___bit
        goto    main__6
        ; # Clear time:
        ; line_number = 362
        ;  delay_low := command >> 5
        ;info   362, 182
        swapf   command,w
        movwf   delay_low
        rrf     delay_low,f
        movlw   7
        andwf   delay_low,f
        ; line_number = 363
        ;  delay_high := 0
        ;info   363, 187
        clrf    delay_high
        goto    main__7
        ; 2GOTO: Starting code 2
main__6:
        ; # Just set the low order two bits:
        ; line_number = 366
        ;  delay_low := (delay_low & 0xfc) | (command >> 5)
        ;info   366, 189
main__3 equ globals___0+71
        movlw   252
        andwf   delay_low,w
        movwf   main__3
main__4 equ globals___0+72
        swapf   command,w
        movwf   main__4
        rrf     main__4,w
        andlw   7
        iorwf   main__3,w
        movwf   delay_low
main__7:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=main__select__5 (data:00=>00 code:00=>00)
        ; line_number = 360
        ;  if command@4 done
        ; line_number = 367
        ; buffer_command := directions
        ;info   367, 198
        movf    directions,w
        movwf   buffer_command

        ; line_number = 369
        ;  delay_high := (delay_a << 2) | (delay_b >> 2)
        ;info   369, 200
main__8 equ globals___0+71
        rlf     delay_a,w
        movwf   main__8
        rlf     main__8,f
        movlw   252
        andwf   main__8,f
main__9 equ globals___0+72
        rrf     delay_b,w
        movwf   main__9
        rrf     main__9,w
        andlw   63
        iorwf   main__8,w
        movwf   delay_high
        ; line_number = 370
        ;  delay_low := (delay_b << 6) | (delay_c << 2) | ((command >> 5) & 3) 
        ;info   370, 211
main__10 equ globals___0+72
        swapf   delay_b,w
        movwf   main__10
        rlf     main__10,f
        rlf     main__10,f
        movlw   192
        andwf   main__10,f
main__11 equ globals___0+73
        rlf     delay_c,w
        movwf   main__11
        rlf     main__11,w
        andlw   252
        iorwf   main__10,f
main__12 equ globals___0+74
        swapf   command,w
        movwf   main__12
        rrf     main__12,w
        andlw   3
        iorwf   main__10,w
        movwf   delay_low

        ; line_number = 373
        ; if command@3 start
        ;info   373, 228
main__select__14___byte equ command
main__select__14___bit equ 3
        ; =>bit_code_emit@symbol(): sym=main__select__14
        ; 1TEST: Single test with code in skip slot
        btfsc   main__select__14___byte, main__select__14___bit
        ; line_number = 374
        ; buffer_command@a_step_bit := _true
        ;info   374, 229
main__select__13___byte equ buffer_command
main__select__13___bit equ 7
        bsf     main__select__13___byte, main__select__13___bit
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=main__select__14 (data:00=>00 code:00=>00)
        ; line_number = 373
        ; if command@3 done
        ; line_number = 375
        ; if command@2 start
        ;info   375, 230
main__select__16___byte equ command
main__select__16___bit equ 2
        ; =>bit_code_emit@symbol(): sym=main__select__16
        ; 1TEST: Single test with code in skip slot
        btfsc   main__select__16___byte, main__select__16___bit
        ; line_number = 376
        ; buffer_command@x_step_bit := _true
        ;info   376, 231
main__select__15___byte equ buffer_command
main__select__15___bit equ 1
        bsf     main__select__15___byte, main__select__15___bit
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=main__select__16 (data:00=>00 code:00=>00)
        ; line_number = 375
        ; if command@2 done
        ; line_number = 377
        ; if command@1 start
        ;info   377, 232
main__select__18___byte equ command
main__select__18___bit equ 1
        ; =>bit_code_emit@symbol(): sym=main__select__18
        ; 1TEST: Single test with code in skip slot
        btfsc   main__select__18___byte, main__select__18___bit
        ; line_number = 378
        ; buffer_command@y_step_bit := _true
        ;info   378, 233
main__select__17___byte equ buffer_command
main__select__17___bit equ 3
        bsf     main__select__17___byte, main__select__17___bit
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=main__select__18 (data:00=>00 code:00=>00)
        ; line_number = 377
        ; if command@1 done
        ; line_number = 379
        ; if command@0 start
        ;info   379, 234
main__select__20___byte equ command
main__select__20___bit equ 0
        ; =>bit_code_emit@symbol(): sym=main__select__20
        ; 1TEST: Single test with code in skip slot
        btfsc   main__select__20___byte, main__select__20___bit
        ; line_number = 380
        ; buffer_command@z_step_bit := _true
        ;info   380, 235
main__select__19___byte equ buffer_command
main__select__19___bit equ 5
        bsf     main__select__19___byte, main__select__19___bit
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=main__select__20 (data:00=>00 code:00=>00)
        ; line_number = 379
        ; if command@0 done
        ; line_number = 381
        ; buffer_command_ready := _true
        ;info   381, 236
        bsf     buffer_command_ready___byte, buffer_command_ready___bit


main__45:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=main__select__43 (data:00=>00 code:00=>00)
        ; line_number = 306
        ;  if command@7 done
main__51:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=buffer_command_ready (data:00=>00 code:00=>00)
main__55:
        ; 2GOTO: code1 final bitstates:(data:X0=>X0 code:00=>00)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:00=>00)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        ; <=bit_code_emit@symbol; sym=main__select__53 (data:00=>00 code:00=>00)
        ; line_number = 244
        ;  if buffer_amount@buffer_power done
main__56:
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=__z (data:00=>00 code:00=>00)
        ; line_number = 242
        ; if chunk_current != chunk_enabled done
        ; line_number = 211
        ;  loop_forever wrap-up
        goto    main__1
        ; line_number = 211
        ;  loop_forever done
        ; delay after procedure statements=non-uniform




        ; line_number = 384
        ;info   384, 238
        ; procedure initialize
initialize:
        ; Last argument is sitting in W; save into argument variable
        movwf   initialize__spbrg
        ; delay=4294967295
        ; line_number = 385
        ; argument spbrg byte
initialize__spbrg equ globals___0+69
        ; line_number = 386
        ;  returns_nothing

        ; # Turn off general interrupts:
        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 389
        ;  _gie := _false
        ;info   389, 239
        bcf     _gie___byte, _gie___bit
        ; line_number = 390
        ;  _tmr0ie := _false
        ;info   390, 240
        bcf     _tmr0ie___byte, _tmr0ie___bit

        ; # Initialize the I/O ports:
        ; line_number = 393
        ;  _porta := 0
        ;info   393, 241
        clrf    _porta
        ; line_number = 394
        ;  step_dir_port := 0
        ;info   394, 242
        clrf    step_dir_port
        ; line_number = 395
        ;  we := _true
        ;info   395, 243
        bsf     we___byte, we___bit
        ; line_number = 396
        ;  oe := _true
        ;info   396, 244
        bsf     oe___byte, oe___bit
        ; line_number = 397
        ;  adrm := _false
        ;info   397, 245
        bcf     adrm___byte, adrm___bit
        ; line_number = 398
        ;  adrl := _false
        ;info   398, 246
        bcf     adrl___byte, adrl___bit
        ; line_number = 399
        ;  memory_tris := 0
        ;info   399, 247
        bsf     __rp0___byte, __rp0___bit
        clrf    memory_tris
        ; line_number = 400
        ;  a17 := _true
        ;info   400, 249
        bcf     __rp0___byte, __rp0___bit
        bsf     a17___byte, a17___bit

        ; # Initilize serial port:

        ; # Do Baud Rate selection and asynch. serial port enable:
        ; # Prescaler = high:
        ; line_number = 406
        ;  _brgh := _true
        ;info   406, 251
        bsf     __rp0___byte, __rp0___bit
        bsf     _brgh___byte, _brgh___bit
        ; # Baud rate = 19200 Baud:
        ; line_number = 408
        ;  _spbrg := spbrg
        ;info   408, 253
        bcf     __rp0___byte, __rp0___bit
        movf    initialize__spbrg,w
        bsf     __rp0___byte, __rp0___bit
        movwf   _spbrg
        ; # Asynchronous mode:
        ; line_number = 410
        ;  _sync := _false
        ;info   410, 257
        bcf     _sync___byte, _sync___bit
        ; # Serial port enable:
        ; line_number = 412
        ;  _spen := _true
        ;info   412, 258
        bcf     __rp0___byte, __rp0___bit
        bsf     _spen___byte, _spen___bit
        ; line_number = 413
        ;  _rcie := _false
        ;info   413, 260
        bsf     __rp0___byte, __rp0___bit
        bcf     _rcie___byte, _rcie___bit

        ; # Enable the transmitter:
        ; # 8-bit mode:
        ; line_number = 417
        ;  _tx9 := _false
        ;info   417, 262
        bcf     _tx9___byte, _tx9___bit
        ; # Enable transmitter:
        ; line_number = 419
        ;  _txen := _true
        ;info   419, 263
        bsf     _txen___byte, _txen___bit

        ; # Enable the receiver:
        ; # 8-bit mode:
        ; line_number = 423
        ;  _rx9 := _false
        ;info   423, 264
        bcf     __rp0___byte, __rp0___bit
        bcf     _rx9___byte, _rx9___bit
        ; # Disable address:
        ; line_number = 425
        ;  _adden := _false
        ;info   425, 266
        bcf     _adden___byte, _adden___bit
        ; # Continuous receive enable:
        ; line_number = 427
        ;  _cren := _true
        ;info   427, 267
        bsf     _cren___byte, _cren___bit
        ; # Serial receive enable:
        ; line_number = 429
        ;  _sren := _true
        ;info   429, 268
        bsf     _sren___byte, _sren___bit

        ; # Set up the TRM0 module (RBPU=disabled, T0CS=CLKO, PSA=TMR0, PS=000):
        ; line_number = 432
        ;  _option_reg := 0x80
        ;info   432, 269
        movlw   128
        bsf     __rp0___byte, __rp0___bit
        movwf   _option_reg

        ; # Initialize the memory chip addresses:
        ; line_number = 435
        ;  memory_in_high := 0
        ;info   435, 272
        bcf     __rp0___byte, __rp0___bit
        clrf    memory_in_high
        ; line_number = 436
        ;  memory_in_middle := 0
        ;info   436, 274
        clrf    memory_in_middle
        ; line_number = 437
        ;  memory_in_low := 0
        ;info   437, 275
        clrf    memory_in_low
        ; line_number = 438
        ;  memory_rollback_high := 0
        ;info   438, 276
        clrf    memory_rollback_high
        ; line_number = 439
        ;  memory_rollback_middle := 0
        ;info   439, 277
        clrf    memory_rollback_middle
        ; line_number = 440
        ;  memory_rollback_low := 0
        ;info   440, 278
        clrf    memory_rollback_low
        ; line_number = 441
        ;  memory_out_high := 0
        ;info   441, 279
        clrf    memory_out_high
        ; line_number = 442
        ;  memory_out_middle := 0
        ;info   442, 280
        clrf    memory_out_middle
        ; line_number = 443
        ;  memory_out_low := 0
        ;info   443, 281
        clrf    memory_out_low

        ; line_number = 445
        ;  checksum_low := 0
        ;info   445, 282
        clrf    checksum_low
        ; line_number = 446
        ;  checksum_high := 0
        ;info   446, 283
        clrf    checksum_high
        ; line_number = 447
        ;  chunk_current := 0
        ;info   447, 284
        clrf    chunk_current
        ; line_number = 448
        ;  chunk_enabled := 0
        ;info   448, 285
        clrf    chunk_enabled

        ; # Initialize the circular buffer:
        ; line_number = 451
        ;  buffer_in := 0
        ;info   451, 286
        clrf    buffer_in
        ; line_number = 452
        ;  buffer_out := 0
        ;info   452, 287
        clrf    buffer_out
        ; line_number = 453
        ;  buffer_amount := 0
        ;info   453, 288
        clrf    buffer_amount

        ; line_number = 455
        ;  interrupts := 0
        ;info   455, 289
        clrf    interrupts
        ; line_number = 456
        ;  repeat := _false
        ;info   456, 290
        bcf     repeat___byte, repeat___bit


        ; delay after procedure statements=non-uniform
        ; Implied return
        retlw   0




        ; line_number = 459
        ;info   459, 292
        ; procedure fetch_byte
fetch_byte:
        ; arguments_none
        ; line_number = 461
        ;  returns_nothing

        ; # This procedure will fetch a byte from the UART and stuff it
        ; # into the memory chip.  This procedure assumes that _RCIF is 1
        ; # when called.

        ; line_number = 467
        ;  local insert bit
fetch_byte__insert___byte equ globals___0+79
fetch_byte__insert___bit equ 2
        ; line_number = 468
        ;  local respond bit
fetch_byte__respond___byte equ globals___0+79
fetch_byte__respond___bit equ 3
        ; line_number = 469
        ;  local result byte
fetch_byte__result equ globals___0+70

        ; # Read the UART:
        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 472
        ;  command := _rcreg
        ;info   472, 292
        movf    _rcreg,w
        movwf   command
        ; line_number = 473
        ;  reads_low := reads_low + 1
        ;info   473, 294
        incf    reads_low,f
        ; line_number = 474
        ;  if _z start
        ;info   474, 295
        ; =>bit_code_emit@symbol(): sym=_z
        ; 1TEST: Single test with code in skip slot
        btfsc   _z___byte, _z___bit
        ; line_number = 475
        ; reads_high := reads_high + 1
        ;info   475, 296
        incf    reads_high,f
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=_z (data:00=>00 code:00=>00)
        ; line_number = 474
        ;  if _z done
        ; line_number = 476
        ; if _oerr start
        ;info   476, 297
        ; =>bit_code_emit@symbol(): sym=_oerr
        ; No 1TEST: true.size=2 false.size=0
        ; No 2TEST: true.size=2 false.size=0
        ; 1GOTO: Single test with GOTO
        btfss   _oerr___byte, _oerr___bit
        goto    fetch_byte__1
        ; # We had an overrun error, clear it:
        ; line_number = 478
        ;  _cren := _false
        ;info   478, 299
        bcf     _cren___byte, _cren___bit
        ; line_number = 479
        ;  _cren := _true
        ;info   479, 300
        bsf     _cren___byte, _cren___bit

        ; Recombine size1 = 0 || size2 = 0
fetch_byte__1:
        ; <=bit_code_emit@symbol; sym=_oerr (data:00=>00 code:00=>00)
        ; line_number = 476
        ; if _oerr done
        ; line_number = 481
        ; respond := _false
        ;info   481, 301
        bcf     fetch_byte__respond___byte, fetch_byte__respond___bit
        ; line_number = 482
        ;  insert := _true
        ;info   482, 302
        bsf     fetch_byte__insert___byte, fetch_byte__insert___bit
        ; line_number = 483
        ;  switch command >> 4 start
        ;info   483, 303
        movlw   fetch_byte__36>>8
        movwf   __pclath
fetch_byte__37 equ globals___0+75
        swapf   command,w
        andlw   15
        addlw   fetch_byte__36
        movwf   __pcl
        ; page_group 16
fetch_byte__36:
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__38
        goto    fetch_byte__32
        goto    fetch_byte__33
        goto    fetch_byte__34
        goto    fetch_byte__35
        ; line_number = 484
        ; case 12
fetch_byte__32:
        ; # 1100 xxxx (Control Low Set):
        ; line_number = 486
        ;  insert := _false
        ;info   486, 325
        bcf     fetch_byte__insert___byte, fetch_byte__insert___bit
        ; line_number = 487
        ;  control := control & 0xf0
        ;info   487, 326
        movlw   240
        andwf   control,f
        ; line_number = 488
        ;  control := control | (command & 0xf)
        ;info   488, 328
        movlw   15
        andwf   command,w
        iorwf   control,f
        goto    fetch_byte__38
        ; line_number = 489
        ; case 13
fetch_byte__33:
        ; # 1101 xxxx (Control High Set):
        ; line_number = 491
        ;  insert := _false
        ;info   491, 332
        bcf     fetch_byte__insert___byte, fetch_byte__insert___bit
        ; line_number = 492
        ;  control := control & 0xf
        ;info   492, 333
        movlw   15
        andwf   control,f
        ; line_number = 493
        ;  control := control | (command << 4)
        ;info   493, 335
fetch_byte__2 equ globals___0+75
        swapf   command,w
        andlw   240
        iorwf   control,f
        goto    fetch_byte__38
        ; line_number = 494
        ; case 14
fetch_byte__34:
        ; # Immediate commands:
        ; line_number = 496
        ;  insert := _false
        ;info   496, 339
        bcf     fetch_byte__insert___byte, fetch_byte__insert___bit
        ; line_number = 497
        ;  respond := _true
        ;info   497, 340
        bsf     fetch_byte__respond___byte, fetch_byte__respond___bit
        ; line_number = 498
        ;  switch command & 0xf start
        ;info   498, 341
        movlw   fetch_byte__19>>8
        movwf   __pclath
        movlw   15
        andwf   command,w
        addlw   fetch_byte__19
        movwf   __pcl
        ; page_group 16
fetch_byte__19:
        goto    fetch_byte__3
        goto    fetch_byte__4
        goto    fetch_byte__5
        goto    fetch_byte__6
        goto    fetch_byte__7
        goto    fetch_byte__8
        goto    fetch_byte__9
        goto    fetch_byte__10
        goto    fetch_byte__11
        goto    fetch_byte__12
        goto    fetch_byte__13
        goto    fetch_byte__14
        goto    fetch_byte__15
        goto    fetch_byte__16
        goto    fetch_byte__17
        goto    fetch_byte__18
        ; line_number = 499
        ; case 0
fetch_byte__3:
        ; #: 1110 0000 (Address Low Set):
        ; line_number = 501
        ;  address_low := control
        ;info   501, 363
        movf    control,w
        movwf   address_low
        ; line_number = 502
        ;  result := control
        ;info   502, 365
        movf    control,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 503
        ; case 1
fetch_byte__4:
        ; #: 1110 0001 (Address Middle Set):
        ; line_number = 505
        ;  address_middle := control
        ;info   505, 368
        movf    control,w
        movwf   address_middle
        ; line_number = 506
        ;  result := control
        ;info   506, 370
        movf    control,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 507
        ; case 2
fetch_byte__5:
        ; #: 1110 0010 (Address High Set):
        ; line_number = 509
        ;  address_high := control
        ;info   509, 373
        movf    control,w
        movwf   address_high
        ; line_number = 510
        ;  result := control
        ;info   510, 375
        movf    control,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 511
        ; case 3
fetch_byte__6:
        ; #: 1110 0011 (Memory Get):
        ; # Set the memory address:
        ; line_number = 514
        ;  _porta := address_high
        ;info   514, 378
        movf    address_high,w
        movwf   _porta
        ; line_number = 515
        ;  a17 := _true
        ;info   515, 380
        bsf     a17___byte, a17___bit
        ; line_number = 516
        ;  memory_port := address_middle
        ;info   516, 381
        movf    address_middle,w
        movwf   memory_port
        ; line_number = 517
        ;  adrm := _true
        ;info   517, 383
        bsf     adrm___byte, adrm___bit
        ; line_number = 518
        ;  adrm := _false
        ;info   518, 384
        bcf     adrm___byte, adrm___bit
        ; line_number = 519
        ;  memory_port := address_low
        ;info   519, 385
        movf    address_low,w
        movwf   memory_port
        ; line_number = 520
        ;  adrl := _true
        ;info   520, 387
        bsf     adrl___byte, adrl___bit
        ; line_number = 521
        ;  adrl := _false
        ;info   521, 388
        bcf     adrl___byte, adrl___bit

        ; # Read the data byte:
        ; line_number = 524
        ;  memory_tris := 0xff
        ;info   524, 389
        movlw   255
        bsf     __rp0___byte, __rp0___bit
        movwf   memory_tris
        ; line_number = 525
        ;  oe := _false
        ;info   525, 392
        bcf     __rp0___byte, __rp0___bit
        bcf     oe___byte, oe___bit
        ; line_number = 526
        ;  result := memory_port
        ;info   526, 394
        movf    memory_port,w
        movwf   fetch_byte__result
        ; line_number = 527
        ;  oe := _true
        ;info   527, 396
        bsf     oe___byte, oe___bit
        ; line_number = 528
        ;  memory_tris := 0
        ;info   528, 397
        bsf     __rp0___byte, __rp0___bit
        clrf    memory_tris
        goto    fetch_byte__20
        ; line_number = 529
        ; case 4
fetch_byte__7:
        ; #: 1110 0100 (RAM Get):
        ; line_number = 531
        ;  result := 0
        ;info   531, 400
        clrf    fetch_byte__result
        ; line_number = 532
        ;  respond := _false
        ;info   532, 401
        bcf     fetch_byte__respond___byte, fetch_byte__respond___bit
        goto    fetch_byte__20
        ; line_number = 533
        ; case 5
fetch_byte__8:
        ; #: 1110 0101 (Memory In Low Get):
        ; line_number = 535
        ;  result := memory_in_low
        ;info   535, 403
        movf    memory_in_low,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 536
        ; case 6
fetch_byte__9:
        ; #: 1110 0110 (Memory In Middle Get):
        ; line_number = 538
        ;  result := memory_in_middle
        ;info   538, 406
        movf    memory_in_middle,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 539
        ; case 7
fetch_byte__10:
        ; #: 1110 0111 (Memory In High Get):
        ; line_number = 541
        ;  result := memory_in_high
        ;info   541, 409
        movf    memory_in_high,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 542
        ; case 8
fetch_byte__11:
        ; #: 1110 1000 (Memory Out Low Get):
        ; line_number = 544
        ;  result := memory_out_low
        ;info   544, 412
        movf    memory_out_low,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 545
        ; case 9
fetch_byte__12:
        ; #: 1110 1001 (Memory Out Middle Get):
        ; line_number = 547
        ;  result := memory_out_middle
        ;info   547, 415
        movf    memory_out_middle,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 548
        ; case 10
fetch_byte__13:
        ; #: 1110 1010 (Memory Out High Get):
        ; line_number = 550
        ;  result := memory_out_high
        ;info   550, 418
        movf    memory_out_high,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 551
        ; case 11
fetch_byte__14:
        ; #: 1110 1011 (Checksum Low Get):
        ; line_number = 553
        ;  result := checksum_low
        ;info   553, 421
        movf    checksum_low,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 554
        ; case 12
fetch_byte__15:
        ; #: 1110 1100 (Checksum High Get):
        ; line_number = 556
        ;  result := checksum_high
        ;info   556, 424
        movf    checksum_high,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 557
        ; case 13
fetch_byte__16:
        ; #: 1110 1101 (Chunk Current Get):
        ; line_number = 559
        ;  result := chunk_current
        ;info   559, 427
        movf    chunk_current,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 560
        ; case 14
fetch_byte__17:
        ; #: 1110 1110 (Chunk Enabled Get):
        ; line_number = 562
        ;  result := chunk_enabled
        ;info   562, 430
        movf    chunk_enabled,w
        movwf   fetch_byte__result
        goto    fetch_byte__20
        ; line_number = 563
        ; case 15
fetch_byte__18:
        ; #: 1110 1111 (Sync):
        ; line_number = 565
        ;  result := 0xa5
        ;info   565, 433
        movlw   165
        movwf   fetch_byte__result
fetch_byte__20:
        ; line_number = 498
        ;  switch command & 0xf done
        goto    fetch_byte__38
        ; line_number = 566
        ; case 15
fetch_byte__35:
        ; # Immediate commands:
        ; line_number = 568
        ;  insert := _false
        ;info   568, 436
        bcf     fetch_byte__insert___byte, fetch_byte__insert___bit
        ; line_number = 569
        ;  respond := _true
        ;info   569, 437
        bsf     fetch_byte__respond___byte, fetch_byte__respond___bit
        ; line_number = 570
        ;  switch command & 0xf start
        ;info   570, 438
        movlw   fetch_byte__30>>8
        movwf   __pclath
        movlw   15
        andwf   command,w
        addlw   fetch_byte__30
        movwf   __pcl
        ; page_group 16
fetch_byte__30:
        goto    fetch_byte__25
        goto    fetch_byte__25
        goto    fetch_byte__25
        goto    fetch_byte__25
        goto    fetch_byte__25
        goto    fetch_byte__25
        goto    fetch_byte__25
        goto    fetch_byte__25
        goto    fetch_byte__29
        goto    fetch_byte__31
        goto    fetch_byte__31
        goto    fetch_byte__31
        goto    fetch_byte__26
        goto    fetch_byte__27
        goto    fetch_byte__28
        goto    fetch_byte__29
        ; line_number = 571
        ; case 0, 1, 2, 3, 4, 5, 6, 7
fetch_byte__25:
        ; # 1111 0ccc (Increment chunk enabled counter):
        ; line_number = 573
        ;  if (chunk_enabled & 7) = (command & 7) start
        ;info   573, 460
        ; Left minus Right
fetch_byte__21 equ globals___0+75
        movlw   7
        andwf   chunk_enabled,w
        movwf   fetch_byte__21
        movlw   7
        andwf   command,w
        subwf   fetch_byte__21,w
        ; =>bit_code_emit@symbol(): sym=__z
        ; No 1TEST: true.size=4 false.size=1
        ; No 2TEST: true.size=4 false.size=1
        ; 2GOTO: Single test with two GOTO's
        btfss   __z___byte, __z___bit
        goto    fetch_byte__22
        ; line_number = 574
        ; chunk_enabled := (chunk_enabled + 1) & 7
        ;info   574, 468
        incf    chunk_enabled,w
        andlw   7
        movwf   chunk_enabled
        ; line_number = 575
        ;  result := 0x81
        ;info   575, 471
        movlw   129
        goto    fetch_byte__23
        ; 2GOTO: Starting code 2
fetch_byte__22:
        ; line_number = 577
        ; result := 0x80
        ;info   577, 473
        movlw   128
fetch_byte__23:
        ; 2GOTO: code1 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code2 final bitstates:(data:00=>00 code:XX=>XX)
        ; 2GOTO: code final bitstates:(data:00=>00 code:00=>00)
        movwf   fetch_byte__result
        ; <=bit_code_emit@symbol; sym=__z (data:00=>00 code:00=>00)
        ; line_number = 573
        ;  if (chunk_enabled & 7) = (command & 7) done
        goto    fetch_byte__31
        ; line_number = 578
        ; case 12
fetch_byte__26:
        ; # 1111 1100 (Commit Data Block):
        ; line_number = 580
        ;  memory_rollback_high := memory_in_high
        ;info   580, 476
        movf    memory_in_high,w
        movwf   memory_rollback_high
        ; line_number = 581
        ;  memory_rollback_middle := memory_in_middle
        ;info   581, 478
        movf    memory_in_middle,w
        movwf   memory_rollback_middle
        ; line_number = 582
        ;  memory_rollback_low := memory_in_low
        ;info   582, 480
        movf    memory_in_low,w
        movwf   memory_rollback_low
        ; line_number = 583
        ;  checksum_high := 0
        ;info   583, 482
        clrf    checksum_high
        ; line_number = 584
        ;  checksum_low := 0
        ;info   584, 483
        clrf    checksum_low
        ; line_number = 585
        ;  result := 0xa5
        ;info   585, 484
        movlw   165
        movwf   fetch_byte__result
        goto    fetch_byte__31
        ; line_number = 586
        ; case 13
fetch_byte__27:
        ; # 1111 1101 (Rollback Data Block):
        ; line_number = 588
        ;  memory_in_high := memory_rollback_high
        ;info   588, 487
        movf    memory_rollback_high,w
        movwf   memory_in_high
        ; line_number = 589
        ;  memory_in_middle := memory_rollback_middle
        ;info   589, 489
        movf    memory_rollback_middle,w
        movwf   memory_in_middle
        ; line_number = 590
        ;  memory_in_low := memory_rollback_low
        ;info   590, 491
        movf    memory_rollback_low,w
        movwf   memory_in_low
        ; line_number = 591
        ;  checksum_high := 0
        ;info   591, 493
        clrf    checksum_high
        ; line_number = 592
        ;  checksum_low := 0
        ;info   592, 494
        clrf    checksum_low
        ; line_number = 593
        ;  result := 0xaa
        ;info   593, 495
        movlw   170
        movwf   fetch_byte__result
        goto    fetch_byte__31
        ; line_number = 594
        ; case 14
fetch_byte__28:
        ; # 1111 1110 (Read Chunk Counters):
        ; line_number = 596
        ;  result := chunk_current << 3 | chunk_enabled
        ;info   596, 498
fetch_byte__24 equ globals___0+75
        rlf     chunk_current,w
        movwf   fetch_byte__24
        rlf     fetch_byte__24,f
        rlf     fetch_byte__24,w
        andlw   248
        iorwf   chunk_enabled,w
        movwf   fetch_byte__result
        goto    fetch_byte__31
        ; line_number = 597
        ; case 8, 15
fetch_byte__29:
        ; # 1111 1111 (End of Chunk):
        ; line_number = 599
        ;  insert := _true
        ;info   599, 506
        bsf     fetch_byte__insert___byte, fetch_byte__insert___bit
        ; line_number = 600
        ;  respond := _false
        ;info   600, 507
        bcf     fetch_byte__respond___byte, fetch_byte__respond___bit

fetch_byte__31:
        ; line_number = 570
        ;  switch command & 0xf done
fetch_byte__38:
        ; line_number = 483
        ;  switch command >> 4 done
        ; line_number = 602
        ; if insert start
        ;info   602, 508
        ; =>bit_code_emit@symbol(): sym=fetch_byte__insert
        ; No 1TEST: true.size=25 false.size=0
        ; No 2TEST: true.size=25 false.size=0
        ; 1GOTO: Single test with GOTO
        bcf     __rp0___byte, __rp0___bit
        btfss   fetch_byte__insert___byte, fetch_byte__insert___bit
        goto    fetch_byte__40
        ; # Set the address first:
        ; line_number = 604
        ;  _porta := memory_in_high
        ;info   604, 511
        movf    memory_in_high,w
        movwf   _porta
        ; line_number = 605
        ;  a17 := _true
        ;info   605, 513
        bsf     a17___byte, a17___bit
        ; line_number = 606
        ;  memory_port := memory_in_middle
        ;info   606, 514
        movf    memory_in_middle,w
        movwf   memory_port
        ; line_number = 607
        ;  adrm := _true
        ;info   607, 516
        bsf     adrm___byte, adrm___bit
        ; line_number = 608
        ;  adrm := _false
        ;info   608, 517
        bcf     adrm___byte, adrm___bit
        ; line_number = 609
        ;  memory_port := memory_in_low
        ;info   609, 518
        movf    memory_in_low,w
        movwf   memory_port
        ; line_number = 610
        ;  adrl := _true
        ;info   610, 520
        bsf     adrl___byte, adrl___bit
        ; line_number = 611
        ;  adrl := _false
        ;info   611, 521
        bcf     adrl___byte, adrl___bit

        ; # Transfer the byte from the UART to the memory chip:
        ; line_number = 614
        ;  memory_port := command
        ;info   614, 522
        movf    command,w
        movwf   memory_port
        ; line_number = 615
        ;  we := _false
        ;info   615, 524
        bcf     we___byte, we___bit
        ; line_number = 616
        ;  we := _true
        ;info   616, 525
        bsf     we___byte, we___bit

        ; # Increment the memory address:
        ; line_number = 619
        ;  memory_in_low := memory_in_low + 1
        ;info   619, 526
        incf    memory_in_low,f
        ; line_number = 620
        ;  if _z start
        ;info   620, 527
        ; =>bit_code_emit@symbol(): sym=_z
        ; No 1TEST: true.size=3 false.size=0
        ; No 2TEST: true.size=3 false.size=0
        ; 1GOTO: Single test with GOTO
        btfss   _z___byte, _z___bit
        goto    fetch_byte__39
        ; line_number = 621
        ; memory_in_middle := memory_in_middle + 1
        ;info   621, 529
        incf    memory_in_middle,f
        ; line_number = 622
        ;  if _z start
        ;info   622, 530
        ; =>bit_code_emit@symbol(): sym=_z
        ; 1TEST: Single test with code in skip slot
        btfsc   _z___byte, _z___bit
        ; line_number = 623
        ; memory_in_high := memory_in_high + 1
        ;info   623, 531
        incf    memory_in_high,f

        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=_z (data:00=>00 code:XX=>XX)
        ; line_number = 622
        ;  if _z done
        ; Recombine size1 = 0 || size2 = 0
fetch_byte__39:
        ; <=bit_code_emit@symbol; sym=_z (data:00=>00 code:00=>00)
        ; line_number = 620
        ;  if _z done
        ; # Increment the chucksum:
        ; line_number = 626
        ;  checksum_low := checksum_low + command
        ;info   626, 532
        movf    command,w
        addwf   checksum_low,f
        ; line_number = 627
        ;  if _c start
        ;info   627, 534
        ; =>bit_code_emit@symbol(): sym=_c
        ; 1TEST: Single test with code in skip slot
        btfsc   _c___byte, _c___bit
        ; line_number = 628
        ; checksum_high := checksum_high + 1
        ;info   628, 535
        incf    checksum_high,f

        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=_c (data:00=>00 code:00=>00)
        ; line_number = 627
        ;  if _c done
        ; Recombine size1 = 0 || size2 = 0
fetch_byte__40:
        ; <=bit_code_emit@symbol; sym=fetch_byte__insert (data:00=>00 code:00=>00)
        ; line_number = 602
        ; if insert done
        ; line_number = 630
        ; if respond	   start
        ;info   630, 536
        ; =>bit_code_emit@symbol(): sym=fetch_byte__respond
        ; No 1TEST: true.size=2 false.size=0
        ; No 2TEST: true.size=2 false.size=0
        ; 1GOTO: Single test with GOTO
        btfss   fetch_byte__respond___byte, fetch_byte__respond___bit
        goto    fetch_byte__41
        ; line_number = 631
        ; call _uart_byte_put(result)
        ;info   631, 538
        movf    fetch_byte__result,w
        call    _uart_byte_put


        ; Recombine size1 = 0 || size2 = 0
fetch_byte__41:
        ; <=bit_code_emit@symbol; sym=fetch_byte__respond (data:00=>00 code:00=>00)
        ; line_number = 630
        ; if respond	   done
        ; delay after procedure statements=non-uniform
        ; Implied return
        retlw   0




        ; #procedure xmain
        ; #    arguments_none
        ; #    returns_nothing
        ; #
        ; #    local index byte
        ; #    local size byte
        ; #
        ; #    call initialize(spbrg_19200)
        ; #
        ; #    call _uart_crlf_put()
        ; #    call _uart_byte_put('D')
        ; #    call _uart_byte_put('e')
        ; #    call _uart_byte_put('b')
        ; #    call _uart_byte_put('u')
        ; #    call _uart_byte_put('g')
        ; #    call _uart_crlf_put()
        ; #
        ; #    # Initialize step and direction:
        ; #    a_step := 0
        ; #    a_dir := 0
        ; #    x_step := 0
        ; #    x_dir := 0
        ; #    y_step := 0
        ; #    y_dir := 0
        ; #    z_step := 0
        ; #    z_dir := 0
        ; #
        ; #    # Command loop:
        ; #    index := 0
        ; #    loop_forever
        ; #	command := _uart_byte_get()
        ; #	if command = '\cr\'
        ; #	    # End of line:
        ; #	    call _uart_crlf_put()
        ; #	    size := index
        ; #	    index := 0
        ; #	    if size != 0
        ; #		loop_exactly size
        ; #		    # Set high address byte:
        ; #		    _porta := 0
        ; #		    a17 := 1
        ; #
        ; #		    # Set middle address byte:
        ; #		    memory_port := 0
        ; #		    adrm := 1
        ; #		    adrm := 0
        ; #
        ; #		    # Set low address byte:
        ; #		    memory_port := index
        ; #		    adrl := 1
        ; #		    adrl := 0
        ; #
        ; #		    # Read the data byte:
        ; #		    memory_tris := 0xff
        ; #		    oe := 0
        ; #		    command := memory_port
        ; #		    oe := 1
        ; #		    memory_tris := 0
        ; #
        ; #		    call _uart_byte_put(command)
        ; #		    index := index + 1
        ; #	    call _uart_crlf_put()
        ; #	    index := 0
        ; #	else
        ; #	    # Enter character into buffer:
        ; #	    call _uart_byte_put(command)
        ; #
        ; #	    # Set high address byte:
        ; #	    _porta := 0
        ; #	    a17 := 1
        ; #
        ; #	    # Set middle address byte:
        ; #	    memory_port := 0
        ; #	    adrm := 1
        ; #	    adrm := 0
        ; #
        ; #	    # Set low address byte:
        ; #	    memory_port := index
        ; #	    adrl := 1
        ; #	    adrl := 0
        ; #
        ; #	    # Write data:
        ; #	    memory_port := command
        ; #	    we := 0
        ; #	    we := 1
        ; #
        ; #	    index := index + 1


        ; Appending 7 delayed procedures to code bank 0
        ; buffer = '_uart'
        ; line_number = 7
        ;info   7, 541
        ; procedure _uart_byte_safe_get
_uart_byte_safe_get:
        ; arguments_none
        ; line_number = 9
        ;  returns byte

        ; # This procedure will the next byte from UART.  If no byte
        ; # received in a reasonable time, 0xfc is returned.

        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 14
        ;  loop_exactly 255 start
        ;info   14, 541
_uart_byte_safe_get__1 equ globals___0+76
        movlw   255
        movwf   _uart_byte_safe_get__1
_uart_byte_safe_get__2:
        ; line_number = 15
        ; loop_exactly 255 start
        ;info   15, 543
_uart_byte_safe_get__3 equ globals___0+77
        movlw   255
        movwf   _uart_byte_safe_get__3
_uart_byte_safe_get__4:
        ; line_number = 16
        ; if _rcif start
        ;info   16, 545
        ; =>bit_code_emit@symbol(): sym=_rcif
        ; No 1TEST: true.size=2 false.size=0
        ; No 2TEST: true.size=2 false.size=0
        ; 1GOTO: Single test with GOTO
        btfss   _rcif___byte, _rcif___bit
        goto    _uart_byte_safe_get__5
        ; line_number = 17
        ; return _rcreg start
        ; line_number = 17
        ;info   17, 547
        movf    _rcreg,w
        return  
        ; line_number = 17
        ; return _rcreg done
        ; Recombine size1 = 0 || size2 = 0
_uart_byte_safe_get__5:
        ; <=bit_code_emit@symbol; sym=_rcif (data:00=>00 code:00=>00)
        ; line_number = 16
        ; if _rcif done
        ; line_number = 15
        ; loop_exactly 255 wrap-up
        decfsz  _uart_byte_safe_get__3,f
        goto    _uart_byte_safe_get__4
        ; line_number = 15
        ; loop_exactly 255 done
        ; line_number = 14
        ;  loop_exactly 255 wrap-up
        decfsz  _uart_byte_safe_get__1,f
        goto    _uart_byte_safe_get__2
        ; line_number = 14
        ;  loop_exactly 255 done
        ; line_number = 18
        ; return 0xfc start
        ; line_number = 18
        ;info   18, 553
        retlw   252
        ; line_number = 18
        ; return 0xfc done


        ; delay after procedure statements=non-uniform




        ; line_number = 21
        ;info   21, 554
        ; procedure _uart_byte_get
_uart_byte_get:
        ; arguments_none
        ; line_number = 23
        ;  returns byte

        ; # This procedure will return the next byte from the UART.

        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 27
        ;  while !_rcif start
_uart_byte_get__1:
        ;info   27, 554
        ; =>bit_code_emit@symbol(): sym=_rcif
        ; 1TEST: Single test with code in skip slot
        btfss   _rcif___byte, _rcif___bit
        ; line_number = 28
        ; do_nothing
        ;info   28, 555
        goto    _uart_byte_get__1
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=_rcif (data:00=>00 code:00=>00)
        ; line_number = 27
        ;  while !_rcif done
        ; line_number = 29
        ; return _rcreg start
        ; line_number = 29
        ;info   29, 556
        movf    _rcreg,w
        return  
        ; line_number = 29
        ; return _rcreg done


        ; delay after procedure statements=non-uniform




        ; line_number = 32
        ;info   32, 558
        ; procedure _uart_hex_put
_uart_hex_put:
        ; Last argument is sitting in W; save into argument variable
        movwf   _uart_hex_put__value
        ; delay=4294967295
        ; line_number = 33
        ; argument value byte
_uart_hex_put__value equ globals___0
        ; line_number = 34
        ;  returns_nothing

        ; # This procedure will output {value} to the UART as a 2-digit
        ; # hexadecimal number.

        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 39
        ;  call _uart_nibble_put(value >> 4)
        ;info   39, 559
_uart_hex_put__1 equ globals___0+78
        swapf   _uart_hex_put__value,w
        andlw   15
        call    _uart_nibble_put
        ; line_number = 40
        ;  call _uart_nibble_put(value & 0xf)
        ;info   40, 562
        movlw   15
        andwf   _uart_hex_put__value,w
        call    _uart_nibble_put


        ; delay after procedure statements=non-uniform
        ; Implied return
        retlw   0




        ; line_number = 43
        ;info   43, 566
        ; procedure _uart_nibble_put
_uart_nibble_put:
        ; Last argument is sitting in W; save into argument variable
        movwf   _uart_nibble_put__nibble
        ; delay=4294967295
        ; line_number = 44
        ; argument nibble byte
_uart_nibble_put__nibble equ globals___0+1
        ; line_number = 45
        ;  returns_nothing

        ; # This procedure will output {value} to UART as a 1 digit
        ; # hexadecimal number.

        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 50
        ;  if nibble < 10 start
        ;info   50, 567
        movlw   10
        subwf   _uart_nibble_put__nibble,w
        ; =>bit_code_emit@symbol(): sym=__c
        ; No 1TEST: true.size=1 false.size=1
        ; 2TEST: two tests with code in both delay slots
        btfsc   __c___byte, __c___bit
        ; line_number = 53
        ; nibble := nibble - 10 + 'A'
        ;info   53, 570
        movlw   55
        btfss   __c___byte, __c___bit
        ; line_number = 51
        ; nibble := nibble + '0'
        ;info   51, 572
        movlw   48
        addwf   _uart_nibble_put__nibble,f
        ; <=bit_code_emit@symbol; sym=__c (data:00=>00 code:00=>00)
        ; line_number = 50
        ;  if nibble < 10 done
        ; line_number = 54
        ; call _uart_byte_put(nibble)
        ;info   54, 574
        movf    _uart_nibble_put__nibble,w
        call    _uart_byte_put


        ; delay after procedure statements=non-uniform
        ; Implied return
        retlw   0




        ; line_number = 57
        ;info   57, 577
        ; procedure _uart_space_put
_uart_space_put:
        ; arguments_none
        ; line_number = 59
        ;  returns_nothing

        ; # This procedure will output a space to the UART.

        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 63
        ;  call _uart_byte_put(' ')
        ;info   63, 577
        movlw   32
        call    _uart_byte_put


        ; delay after procedure statements=non-uniform
        ; Implied return
        retlw   0




        ; line_number = 66
        ;info   66, 580
        ; procedure _uart_crlf_put
_uart_crlf_put:
        ; arguments_none
        ; line_number = 68
        ;  returns_nothing

        ; # This procedure will output a carriage return line feed sequecne to
        ; # the UART.

        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 73
        ;  call _uart_byte_put('\cr\')
        ;info   73, 580
        movlw   13
        call    _uart_byte_put
        ; line_number = 74
        ;  call _uart_byte_put('\lf\')
        ;info   74, 582
        movlw   10
        call    _uart_byte_put


        ; delay after procedure statements=non-uniform
        ; Implied return
        retlw   0




        ; line_number = 77
        ;info   77, 585
        ; procedure _uart_byte_put
_uart_byte_put:
        ; Last argument is sitting in W; save into argument variable
        movwf   _uart_byte_put__byte
        ; delay=4294967295
        ; line_number = 78
        ; argument byte byte
_uart_byte_put__byte equ globals___0+2
        ; line_number = 79
        ;  returns_nothing

        ; # This procedure will send {byte} out using to the UART.

        ; before procedure statements delay=non-uniform, bit states=(data:00=>00 code:00=>00)
        ; line_number = 83
        ;  while !_txif start
_uart_byte_put__1:
        ;info   83, 586
        ; =>bit_code_emit@symbol(): sym=_txif
        ; 1TEST: Single test with code in skip slot
        btfss   _txif___byte, _txif___bit
        ; line_number = 84
        ; do_nothing
        ;info   84, 587
        goto    _uart_byte_put__1
        ; Recombine size1 = 0 || size2 = 0
        ; <=bit_code_emit@symbol; sym=_txif (data:00=>00 code:00=>00)
        ; line_number = 83
        ;  while !_txif done
        ; line_number = 85
        ; _txreg := byte
        ;info   85, 588
        movf    _uart_byte_put__byte,w
        movwf   _txreg


        ; delay after procedure statements=non-uniform
        ; Implied return
        retlw   0




        ; Code bank 1; Start address: 2048; End address: 4095
        org     2048
        ; Code bank 2; Start address: 4096; End address: 6143
        org     4096
        ; Code bank 3; Start address: 6144; End address: 8191
        org     6144
        ; Configuration bits
        ; address = 0x2007, fill = 0x600
        ; cp = off (0x2000)
        ; cpmx = rc1 (0x1000)
        ; debug = off (0x800)
        ; borv = borv00 (0x0)
        ; boren = off (0x0)
        ; mclre = off (0x0)
        ; pwrten = off (0x8)
        ; wdten = off (0x0)
        ; fosc = hs (0x2)
        ; 15882 = 0x3e0a
        ; 8199 = 0x2007
        __config 8199, 15882
        ; Configuration bits
        ; address = 0x2008, fill = 0x33bc
        ; borsen = off (0x0)
        ; ieso = off (0x2)
        ; fcmen = off (0x0)
        ; 13246 = 0x33be
        ; 8200 = 0x2008
        __config 8200, 13246
        ; Define start addresses for data regions
        ; Region="shared___globals" Address=112" Size=16 Bytes=3 Bits=0 Available=13
        ; Region="globals___0" Address=32" Size=80 Bytes=79 Bits=4 Available=0
        ; Region="globals___1" Address=160" Size=80 Bytes=0 Bits=0 Available=80
        ; Region="globals___2" Address=272" Size=96 Bytes=0 Bits=0 Available=96
        ; Region="globals___3" Address=400" Size=112 Bytes=0 Bits=0 Available=112
        end
