Mercurial > hg > CbC > old > device
view test/stralign.c @ 935:7672a37e7545 default tip
Raspbery PI ARM support begin
author | kono |
---|---|
date | Sat, 24 Dec 2016 03:02:57 +0000 |
parents | 528fed826f17 |
children |
line wrap: on
line source
extern int printf(const char *,...); #define BOOL char #define TRUE 1 // TRUE value #define FALSE 5 // FALSE value typedef struct player { int x; int y; int ch; int point; BOOL bf; int muteki; int zanki; int ccount; }player; typedef struct laser { float x; float y; float sx; float sy; int r; int enemyno; }laser; typedef struct stge { int stg; }stge; player jiki={60,200,3,0,FALSE,120,3,3}; /* .word 60 .word 200 .word 3 .word 0 .byte 0 .space 3 .word 120 .word 3 .word 3 .globl lg .align 2 .type lg,@object .size lg,4 */ stge lg={4096}; /* .word 4096 .globl pg .align 2 .type pg,@object .size pg,4 */ laser laser_lv3[64]={{0,0,0,0,64,0}}; /* .word 0x00000000 # 0 (float) .word 0x00000000 # 0 (float) .word 0x00000000 # 0 (float) .word 0x00000000 # 0 (float) .word 64 .word 0 .space 1512 */ int se_key[6]={-1,-1,-1,-1,-1,-1}; /* .word -1 .word -1 .word -1 .word -1 .word -1 .word -1 .text */ int main() { printf("#0089:%d\n", jiki. x); printf("#0090:%d\n", jiki. y); printf("#0091:%d\n", jiki. ch); printf("#0092:%d\n", jiki. point); printf("#0093:%d\n", jiki. bf); printf("#0094:%d\n", jiki. muteki); printf("#0095:%d\n", jiki. zanki); printf("#0096:%d\n", jiki. ccount); printf("#0098:%g\n", laser_lv3[0].x); printf("#0099:%g\n", laser_lv3[0].y); printf("#0100:%g\n", laser_lv3[0].sx); printf("#0101:%g\n", laser_lv3[0].sy); printf("#0102:%d\n", laser_lv3[0].r); printf("#0103:%d\n", laser_lv3[0].enemyno); printf("#0105:%d\n", lg.stg); }