Mercurial > repos > blastem
comparison zruntime.S @ 559:6b248602ab84
blastem builds and almost works on OS X now
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 17 Jun 2014 01:50:29 -0400 |
parents | b3738ee58195 |
children | e13f4fd9cf6d |
comparison
equal
deleted
inserted
replaced
558:dc9f178085a0 | 559:6b248602ab84 |
---|---|
123 z80_read_bank: | 123 z80_read_bank: |
124 /* approximation of wait states for normal 68K bus access */ | 124 /* approximation of wait states for normal 68K bus access */ |
125 add $3, %ebp | 125 add $3, %ebp |
126 push %rsi | 126 push %rsi |
127 mov 144(%rsi), %rsi /* get system context pointer */ | 127 mov 144(%rsi), %rsi /* get system context pointer */ |
128 cmp $0, 120(%rsi) /* check bus busy flag */ | 128 cmpb $0, 120(%rsi) /* check bus busy flag */ |
129 pop %rsi | 129 pop %rsi |
130 jne bus_busy | 130 jne bus_busy |
131 z80_read_bank_cont: | 131 z80_read_bank_cont: |
132 and $0x7FFF, %r13 | 132 and $0x7FFF, %r13 |
133 cmp $0, %r12 | 133 cmp $0, %r12 |
241 | 241 |
242 z80_read_bank_word: | 242 z80_read_bank_word: |
243 add $3, %ebp /* first read typically has 3 wait states */ | 243 add $3, %ebp /* first read typically has 3 wait states */ |
244 push %rsi | 244 push %rsi |
245 mov 144(%rsi), %rsi /* get system context pointer */ | 245 mov 144(%rsi), %rsi /* get system context pointer */ |
246 cmp $0, 120(%rsi) /* check bus busy flag */ | 246 cmpb $0, 120(%rsi) /* check bus busy flag */ |
247 pop %rsi | 247 pop %rsi |
248 jne bus_busy_word | 248 jne bus_busy_word |
249 z80_read_bank_word_cont: | 249 z80_read_bank_word_cont: |
250 push %r13 | 250 push %r13 |
251 call z80_read_bank_cont | 251 call z80_read_bank_cont |
254 inc %r13 | 254 inc %r13 |
255 call z_inccycles | 255 call z_inccycles |
256 add $4, %ebp /* second read typically has 4 wait states */ | 256 add $4, %ebp /* second read typically has 4 wait states */ |
257 push %rsi | 257 push %rsi |
258 mov 144(%rsi), %rsi /* get system context pointer */ | 258 mov 144(%rsi), %rsi /* get system context pointer */ |
259 cmp $0, 120(%rsi) /* check bus busy flag */ | 259 cmpb $0, 120(%rsi) /* check bus busy flag */ |
260 pop %rsi | 260 pop %rsi |
261 jne bus_busy_word2 | 261 jne bus_busy_word2 |
262 z80_read_bank_word_cont2: | 262 z80_read_bank_word_cont2: |
263 call z80_read_bank_cont | 263 call z80_read_bank_cont |
264 shl $8, %r13w | 264 shl $8, %r13w |