User’s Manual U15556EJ1V0UM
14
(8)
(9)
(10) Interrupt functions.......................................................................................................................340
(11) Interrupt function qualifier (_ _interrupt, _ _interrupt_brk) ..........................................................346
(12) Interrupt functions.......................................................................................................................349
(13) CPU control instruction...............................................................................................................352
(14) callf functions..............................................................................................................................356
(15) 16 MB expansion space utilization .............................................................................................358
(16) Allocation function ......................................................................................................................361
(17) Absolute address access function..............................................................................................363
(18) Bit field declaration .....................................................................................................................367
(19) Changing compiler output section name ....................................................................................375
(20) Binary constant...........................................................................................................................389
(21) Module name changing function.................................................................................................391
(22) Rotate function ...........................................................................................................................392
(23) Multiplication function .................................................................................................................395
(24) Division function .........................................................................................................................398
(25) Data insertion function................................................................................................................400
(26) Interrupt handler for real-time OS (RTOS)..................................................................................402
(27) Interrupt handler qualifier for real-time OS (RTOS)....................................................................408
(28) Task function for real-time OS (RTOS).......................................................................................410
(29) Changing function call interface .................................................................................................413
(30) Changing the method of calculating the offset of arrays and pointers........................................414
(31) Pascal function ...........................................................................................................................421
(32) Automatic pascal functionization of the function call interface ...................................................424
(33) Flash area allocation method .....................................................................................................425
(34) Flash area branch table..............................................................................................................426
(35) Function call function from the boot area to the flash area.........................................................430
(36) Firmware ROM function..............................................................................................................433
(37) Method of int expansion limitation of argument/return value......................................................434
(38) Memory manipulation function....................................................................................................436
(39) callf two-step branch function.....................................................................................................441
(40) Automatic callf functionization of function call interface .............................................................444
(41) Three-byte address reference/generation function.....................................................................445
(42) Absolute address allocation specification...................................................................................448
11.6 Modifications of C Source................................................................................................. 452
11.7 Function Call Interface....................................................................................................... 453
11.7.1
Return value ..........................................................................................................................454
11.7.2
Ordinary function call interface..............................................................................................455
(1)
Passing arguments.......................................................................................................455
(2)
Location and order of storing arguments......................................................................456
(3)
Location and order of storing automatic variables........................................................458
11.7.3
noauto function call interface.................................................................................................460
(1)
Passing arguments.......................................................................................................460
(2)
Location and order of storing arguments......................................................................460
(3)
Location and order of storing automatic variables........................................................461
11.7.4
norec function call interface...................................................................................................463
(1)
Passing arguments.......................................................................................................463
_ _boolean1 type variables.........................................................................................................331
ASM statements .........................................................................................................................336