質問するログイン新規登録

質問編集履歴

2

誤字修正

2020/06/08 08:04

投稿

ParaParaDance
ParaParaDance

スコア56

title CHANGED
File without changes
body CHANGED
@@ -5,7 +5,7 @@
5
5
  typedef struct
6
6
  {
7
7
  uint32_t a //Address offset: 0x00
8
- uint8_t b //Address offset: 0x01
8
+ uint8_t b //Address offset: 0x04
9
9
  uint32_t c //Address offset: 0x05
10
10
  }s_instance;
11
11
 
@@ -14,7 +14,7 @@
14
14
  void hoge(s_instance *hoge){
15
15
 
16
16
  hoge offset 0x00番地に値を代入
17
- hoge offset 0x01番地に値を代入
17
+ hoge offset 0x04番地に値を代入
18
18
  hoge offset 0x05番地に値を代入
19
19
 
20
20
  }

1

ソース例を修正

2020/06/08 08:04

投稿

ParaParaDance
ParaParaDance

スコア56

title CHANGED
File without changes
body CHANGED
@@ -11,8 +11,12 @@
11
11
 
12
12
  s_instance *instance;
13
13
 
14
- instance offset 0x00番地に値を代入
14
+ void hoge(s_instance *hoge){
15
- instance offset 0x01番地に値を代入
16
- instance offset 0x05番地に値を代入
17
15
 
16
+ hoge offset 0x00番地に値を代入
17
+ hoge offset 0x01番地に値を代入
18
+ hoge offset 0x05番地に値を代入
19
+
20
+ }
21
+
18
22
  ```