Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Problem with NIOS

Altera_Forum
Honored Contributor II
1,022 Views

I don't know operation 

Ex:  

Kiem_tra_N_va_Xuat_LED: 

call CheckN1 

call CheckN2 

call CheckN3 

call Check3N 

call OutLED 

br -44 

Why br -44 ????? 

Thank you everyone. Thank you very much
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
337 Views

You might need to give a little more context! 

Also enclose program text inside 'CODE' tags (# on 'advanded' window) to keep indentation. 

 

I'd guess that is a bit of assembler listing output? 

'br -44' is an unconditional jump, offset is from the following instruction.
0 Kudos
Altera_Forum
Honored Contributor II
337 Views

 

--- Quote Start ---  

You might need to give a little more context! 

Also enclose program text inside 'CODE' tags (# on 'advanded' window) to keep indentation. 

 

I'd guess that is a bit of assembler listing output? 

'br -44' is an unconditional jump, offset is from the following instruction. 

--- Quote End ---  

 

Why "-44"? Why don't we use "-48","-40" or "40", "48" 

Thank you!
0 Kudos
Altera_Forum
Honored Contributor II
337 Views

Everyone, help me!I do exercise

0 Kudos
Altera_Forum
Honored Contributor II
337 Views

Because that is where in needs to jump to.

0 Kudos
Reply