pancake nopcode
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # comentaris * He decidit importar RBinBind *binb; dins de RArch * aixi podem portar wasm, pyc, dalvik i java facilment # els q costaran una mica de portar - pyc - te una global q shauria de moure al Session *data - fa servir get_reg_profile i set_reg_profile buuuuuuu - pic - gestiona coses de registres dins duna sram q s'alocata dins del plugin, aixo es el mateix q tenir globals, i shauria de moure al data o eliminarho per complert, pq aixo es pot emular amb r_io perfectament i no faria falta aixo, com a molt es podria fer q un RArch.cmd() retornes un script q sexecuti per inicialitzar r2 amb la config de la arch, rollo crear mapes de memoria, inicialitzar registres,e tc.. i com q seria una string, no cal afegir bindings de res a r_arch - gb - afegeix una instruccio a la vm de esil. aquest callback no esta clar com o quan sexecuta i imho hauria de tenir un altre nom - dalvik i java plugins necessiten resoldre strings per fer el disasm be, sha de repensar si moureho a saco o fer q es processi dins de RParse, ja q es la seva "feina". aixi el disasm * anaj.java tb afegeixe el cmd_exit. q imho es una guarrada pero util pq no hi ha RArch.cmd() i en el fons actua com un plugin de io o de core. - de fet aquesta logica la veig millor com a plugin d'anal enlloc de fer - snes - te una var global per les flags. shauria d'eliminar o moure dins del session. el tema sq aixo no shauria de fer servir si estigues implementat l'esil. - no se si hi ha gaires testos daixo - estaria be implementar l'assembler tambe - tms320 - te globals q shaurien deliminar o moure dins del session - es podria optimizar si passem mask a tms320_dasm() per evitar q desensambli la string # els facils de portar - riscv - te assembler i disassembler i no fa coses rares, hauria de ser facil de portar - propeller - no te esil. es podria afegir facilment a l'hora de portar el plugin, afegit un if (mask & ..ESIL) i cridant a una funcio q seteji op->esil depenent de l'opcode - lh5801 - lm32 - i8080 - hauria de ser facil nom escal moure libr/asm/arch/i8080 a libr/arch/p/i8080 - bf - el field de esil = true del plugin lhas desborrar, pq no es feia servir tampoc -h h8300 - hauria de ser facil - bpf - hauria de ser bastant facil de portar, suporta encode i decode - kvx - hauria de ser facil, lo unic es el setregprofile q canvia la signatura tb - chip8 - el mask no es fa servir be pq lo unic q evita es q faci el strdup, pero el format string es fa igualment, i shauria de ficar dins d'un if (mask & R_ARCH_OP_MASK_DISASM tb) - no te assembler, i es una arch bastant facil, si t'animes a ferlo pot molar, pq aixi anem areaprofitant el refactoring per millorar els plugins, no nomes mourels. sino - or1k - fa servir globals q shan de moure adins del *data del RArchSession -cr16 - - 6502 - mcs96 - i8051 - te un parell de globals definides amb R_TH_LOCAL, shaurien deliminar i moure a dins del *data del RArchSession quan s'instancien - el esil-init i fini s'esborren. de fet no fan res ja, i elq intentava implementar eraq els registres es mapejessin en memoria. ara amb r2 es pot fer un o reg://gpr i ja ho tens mapejat on vulguis aixi qno cal GNU - alpha - cal moure els asm/arch/* cap a dins de arch/p/* encara q no acabo de tenir clara - es pot aprofitar per simplificar una mica mes la definicio d plugins de binutils afegint una macro q implmeenti alpha_buffer_read_memory, symbol_at_address i memory_error_func - aquestes macros s'han de dir DECLARE_GENERIC_... - arc - cris - hppa-gnu - lalai - pdp11 - s390 - loongarch - m68k - nios1 - mips-gnu --- XXX have 2 global! remove them v35: - falta el callback de anal_preludes() - nose si tenim el callback de mnemonics..diria q si, pero estaria be comprovarho i afegir algun test sino ( la comanda es aoml ) capstone - son els mes dificils, aixi q millor deixemlos pel final

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully