about summary refs log tree commit diff stats
path: root/dwm.html
Commit message (Expand)AuthorAgeFilesLines
* added new stuffAnselm R. Garbe2006-07-171-9/+6
* updated htmlAnselm R. Garbe2006-07-171-9/+9
* patched dwmAnselm R. Garbe2006-07-171-28/+44
* updated html 0.2Anselm R. Garbe2006-07-171-1/+1
* ordered variables in structs and source files alphabeticallyAnselm R. Garbe2006-07-171-4/+3
* changing XFlush into XSyncAnselm R. Garbe2006-07-151-3/+3
* prep 0.1 0.1Anselm R. Garbe2006-07-141-1/+3
* implemented dwm reading status text from stdin Anselm R. Garbe2006-07-141-2/+2
* made barclick to select the specific tagAnselm R. Garbe2006-07-141-2/+14
* several fixesAnselm R. Garbe2006-07-131-3/+3
* added philosophy sectionAnselm R. Garbe2006-07-131-0/+11
* added xlock command (I need it regularly)Anselm R. Garbe2006-07-131-3/+3
* fixed grammar bug reported by John-GaltAnselm R. Garbe2006-07-131-1/+1
* last change to dwm.htmlAnselm R. Garbe2006-07-131-43/+47
* renamed/changedAnselm R. Garbe2006-07-131-1/+1
* added logo+descriptionAnselm R. Garbe2006-07-131-0/+77
e-array.subx?h=hlt&id=db894e7968808512392c46d62b2bee68b891db04'>^
5e0ae917 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
                                  
                                                                   
 

       
                                                                                                                




                        
               

                              
                                                
                                  


                                              
                 




                        
# 2-arg version of allocate-array.
# Really only intended to be called from code generated by mu.subx.

== code

allocate-array2:  # ad: (addr allocation-descriptor), array-len: int, elem-size: int, out: (addr handle array _)
    # . prologue
    55/push-ebp
    89/<- %ebp 4/r32/esp
    # . save registers
    50/push-eax
    52/push-edx
    #
    8b/-> *(ebp+0xc) 0/r32/eax
    f7 4/subop/multiply-into-edx-eax *(ebp+0x10)
    # TODO: check edx for overflow
    (allocate-array *(ebp+8) %eax *(ebp+0x14))
$allocate-array2:end:
    # . restore registers
    5a/pop-to-edx
    58/pop-to-eax
    # . epilogue
    89/<- %esp 5/r32/ebp
    5d/pop-to-ebp
    c3/return