lpcware

.bss .word 1 thumb 1114 assembler

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by cwpjr on Sun Jan 27 18:50:16 MST 2013
in a *.s module I declare an uninitialized variable:
.bss
// .align 2 or 4 or commented out no matter
ABASE: .word 1
NBASE:          .word    1
XBASE: .word 1

I then load the address to a register:

    LDR   r0, =NBASE

I get a address like 0x1000003E

such that my initialization code for the NBASE variable HardFaults.

EX:
STR r1, [r0]

.word help says the 1 argument I give is an expression, with no examples there, so where can I find what I'm missing?

Outcomes