Hi,
I've got my head now round the dis-assembly with IDA and before I write the new function I had in mind I wanted to assemble the NLS function from asm code to make sure I get the same binary result.
When I try to assemble the function in Keil I get the following error on each line of code.
NLS.A66(39): error A44: NO CURRENTLY ACTIVE SECTION
Anybody knows what I'm doing wrong here?
I'm using this code:
;8E800:
jnb FD38.8, 8E82Ah
mov r4, 380E40h
exts #81h, #1 ; ''
mov r9, 17E00h
cmp r4, r9
jmpr cc_NC, 8E82Ah
mov r4, F87A
exts #81h, #1 ; ''
mov r9, 17E02h
cmp r4, r9
jmpr cc_ULE, 8E82Ah
movb 380DACh, ZEROS
jmpr cc_UC, 8E888h
; ---------------------------------------------------------------------------
;8E82A:
jnb FD38.8, 8E880h
jb FD38.6, 8E876h
mov r4, F87A
exts #81h, #1 ; ''
mov r9, 17E06h
cmp r4, r9
jmpr cc_ULE, 8E876h
movbz r4, 380B02h
exts #81h, #1 ; ''
movbz r9, 17E08h
cmp r4, r9
jmpr cc_ULE, 8E876h
exts #38h, #1 ; '8'
mov r4, 384FF0h
exts #81h, #1 ; ''
mov r9, 17E04h
cmp r4, r9
jmpr cc_NC, 8E888h
movb 380DACh, ZEROS
add r4, #1
exts #38h, #1 ; '8'
movb 384FF0h, rl4
jmpr cc_UC, 8E888h
; ---------------------------------------------------------------------------
;8E876:
exts #38h, #1 ; '8'
mov 384FF0h, ONES
jmpr cc_UC, 8E888h
; ---------------------------------------------------------------------------
;8E880:
exts #38h, #1 ; '8'
mov 384FF0h, ZEROS
;8E888:
movb rl4, 380AF3h
rets
end;
Cheers,
Dave